Java assignment, i want in 5 hours..
prernaProblem Two. File System ExplorerIn 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.
- 10 years ago
- 25
Answer(0)
Bids(0)
other Questions(10)
- outlining
- ForDavidwebassign
- Tutor Gabriel
- What has been the most-improved branch of government (Executive, Legislative, Judicial) given the Constitution's direction and guidance, and why is this so?
- QNT 561 week 5 Business Problem and Research Part 4
- real estate business class
- human growth 2 assignment 4 - TOM CHOMLEA ONLY
- E16-23B (EPS with Convertible Bonds)Penguin Ice Inc. was formed on June 30, 2011, through the merger of Penguin Corp. and Ice Inc. Penguin Ice issued a total of 2,500,000 shares of common stock to owners of the merged companies. The new company had the fo
- ORGANIZATIONAL BEHAVIOR
- ECO 550 ALL CHAPTERS ANSWERS TO KEY QUESTIONS