Create a simple file system explorer gui

Assignment Help Operating System
Reference no: EM13783111

File System Explorer

In this problem, you will be creating a simple GUI that will let you explore the file system on your computer.

Your job is to create a class called Explorer that belongs to the files package. (You can create other classes as you see fit.) When the main method of the Explorer class is run, it should bring up a resizable GUI window. The window should contain a button (or a menu option) that brings up a JFileChooser that allows the user to select a folder. Whenever a folder is selected, the window should display the following information. (Note: A folder is considered to include itself.)

The name and size in bytes of the largest file or folder that is contained (directly or indirectly) within the selected folder.

The total number of files and folders that are contained (directly or indirectly) within the selected folder.

The total number of files larger than 100,000 bytes that are contained (directly or indirectly) within the selected folder.

The name of the file or folder contained (directly or indirectly) within the selected folder that was most recently modified, along with its date and time of modification. (For displaying a date and time, you'll find the java.util.Date class useful.)

For each of the four pieces of information identified above, you are to write a recursive method to calculate it. You are also to create JUnit test cases for the methods.) Two of the methods will need to return two values (a name/size or a name/time). The best way to do this is to create helper classes that provide a means to "glue together" the two values.

Be sure that your GUI deals gracefully with all exceptions.

Reference no: EM13783111

Questions Cloud

Special hazard tax on tanning salons for use of tanning beds : We hear a lot about staying out of the sun and away from tanning beds.  The Federal Government has actually placed a special hazard tax on tanning salons for use of tanning beds.
What iscritical thinking as it applies to the administration : What iscritical thinking as it applies to the administration of criminal justice? How does the relationship among ethics, critical thinking, and behavior impact the criminal justice system from an administrative standpoint
Premodern-modern and postmodern authoritarian : An important difference between premodernism, modernism, and postmodernism resides in where power or authority lies. For premodernists, authority rested in religious leaders and the church because they were the holders of revealed truth. For moder..
Write a paper about a restuarant since i have mentioned : Write a paper about a restuarant since I have mentioned to her that would be a restuarant!
Create a simple file system explorer gui : For each of the four pieces of information identified above, you are to write a recursive method to calculate it. You are also to create JUnit test cases for the methods.) Two of the methods will need to return two values (a name/size or a name/..
Need asap whole foods market, inc. investor relations : Describe three examples of control activities Whole Foods Market, Inc. could use to minimize these risks.
Explain the budgetary and managerial impact : Discuss the budgetary and managerial impact that future trends will likely have not only on the component you select, but also on the other components of the criminal justice system. Be sure to include current research data (qualitative and quanti..
How might you misuse your spiritual gifts : Write a paper on your spiritual gifts and how they impact your ministry. How might you misuse your gifts? Be specific.
Impact the evaluation of a person degree : Socrates was famous for his statement "Know thyself." Psychologists throughout history have echoed this. Plato had some revolutionary ideas on what it means to be human. He was responsible for bringing dualism into popular thought. This had a prof..

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd