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

  Effectiveness of online security

Six months ago a toy corporation started to sell their items on the internet. Over this time period traffic to the website has raised substantially but few consumers have made online purchases.

  Database statistics

In an RDBMS, how are the three phases parsing, execution, and fetching carried out? In general, in which phase would you tune a database? Determine database statistics and why are they important.

  Performance of a computer

Set-up a paper describing with some detail the following topics of computer processing: Each of the twenty items listed should be adequately addressed.

  Integration of voip and wlan

Determine the integration of VOIP and WLAN. Discuss some of issues that need to be overcome, and what security issues needs to be addressed?

  Problem on operating systems

You are to write a 6 - 8 page paper in the APA format about a topic related to this course Week 10: Turn in the final copy of your research paper. The paper should be 6 to 8 pages in length.

  Potential security threats to managing information

Suppose that you have been asked to consult for a corporation that has branch offices in four continents. You have implemented a management data system that will enable its managers to exchange information.

  Android application that reads an ip address

Need to wrigh an android application that reads an IP address of a device, connect to it then switch it on/off using telnet.

  Design an improved interactive password system

Design an improved interactive password system? Present your design and describe what kind of attacks your protocol can protect.

  Consider a scheduling scenario

Consider a scheduling scenario in which a job of size (processing time) 50ms arrives every 60 ms, and 10 jobs of processing time 1ms arrive every 6 ms. Which algorithm: First Come First Serve, or Shortest Remaining Processing Time, would provide b..

  Implementing a data warehouse project

Assume you are implementing a data warehouse project for a consumer and require to evaluate the many tools available for extracting, transforming, and loading data into the data warehouse from several sources.

  Design a memory management scheme

Design a memory management scheme for a 64 bit architecture, using various types of paging and/or segmentation available. Then highlight its advantages and disadvantages. Your scheme must be different from your colleagues' schemes.

  You have poisson arrivals into your system

You have Poisson arrivals into your system with ?= 5 packets/second. The slot length is 1 second. Your current estimate for n^ is 20 (for the k-th time slot iteration).

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