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

  Hardware and software requirements for ehr systems

Recognize the hardware and software requirements to connect in dissimilar EHR systems. Discuss the solutions that have been suggested through the Federal Government and private organizations.

  1 what does it mean to say that a programming language is

1. what does it mean to say that a programming language is machine independent?2. name and describe four different

  Questiona process is a program under execution and as it

questiona process is a program under execution and as it executes it changes state. the state of a process is defined

  Solving hipaa privacy issues

Suppose if we learned anything from Katrina and Joplin, paper records are susceptible to loss en masse. Can you assume having 50,000 paper records blown for miles across Joplin and trying to recreate those records later

  Perform necessary error checking to ensure that a positive

Write a C program using the fork() system call that generates this sequence in the child process. The starting number will be provided from the command line. For example

  Regulation of the telecommunications industry

Discuss how has the telephone service changed over the past sixty years also explain how regulation of the telecommunications industry changed and what ar some of the outcomes of that change?

  Operating model for the organization

Analyze a specific company to recognize their foundation for execution, including, and post your results, for example, the operating model for the organization.

  A spawned process

A spawned process may be destroyed automatically when its parent is destroyed, as one method; another design is to have spawned processes proceed independent of the parent

  Write a short report on page replacement algorithms

Select one of two possible short reports,  Subject 1. Page Replacement Algorithms and Block Caching,  Subject 2. Storing Blocks and Remembering Where You Stored Them

  Procedure to manually remove the existing power supply

Explain the procedure necessary to properly install or replace the computer power supply in a computer.

  Describe the differences between symmetric and asymmetric

Describe the differences between symmetric and asymmetric multiprocessing. What are three advantages and one disadvantage of multiprocessor systems?

  Time slot interchange switch

In a time slot interchange switch, eight input lines are scanned in sequence to build up an input frame with eight slots.

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