|
1 | 1 | # A File Explorer created in Java Swing
|
2 | 2 | ***
|
3 | 3 | ### It displays all the System files. Also lets you rename, delete and edit the files.
|
4 |
| ---- |
| 4 | + |
5 | 5 | #### JTree displays the file System files in a tree format, JTable displays the list of files in the selected path.
|
6 | 6 | ---
|
7 | 7 | Displaying System files
|
8 | 8 |
|
9 |
| -![Capture_FileExplorer]() |
| 9 | + |
| 10 | + |
10 | 11 |
|
11 | 12 |
|
12 | 13 | Right clicking on the JTree and JTable opens the Popup Menu of Options to manipulate files
|
13 | 14 |
|
14 |
| -![Capture_FileExplorer_TablePopup]() |
15 |
| -![Capture_FileExplorer_TreePopup]() |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
16 | 19 |
|
17 | 20 |
|
18 | 21 | Selecting the Rename Options, pops a JOptionPane to input the new file name
|
19 | 22 |
|
20 |
| -![Capture_FileExplorer_RenameButton]() |
| 23 | + |
| 24 | + |
21 | 25 |
|
22 | 26 |
|
23 | 27 | Selecting the Delete Option, pops a JOptionPane to confirm if the user wants to delete the file
|
24 | 28 |
|
25 |
| -![Capture_FileExplorer_DeleteButton]() |
| 29 | + |
| 30 | + |
26 | 31 |
|
27 | 32 |
|
28 | 33 | Selecting the Open option, opens a new JDialog which displays the contents of the file, which can be edited
|
29 | 34 |
|
30 |
| -![Capture_FileExplorer_OpenButton]() |
| 35 | + |
| 36 | + |
31 | 37 |
|
32 | 38 |
|
33 | 39 | Contents of the edited file can be saved by clicking on Edit -> Save
|
34 | 40 |
|
35 |
| -![Capture_FileExplorer_SaveOption]() |
| 41 | + |
| 42 | + |
36 | 43 |
|
37 | 44 |
|
38 | 45 | Selecting a file or directory in the JTree and Clicking the Refresh Button, Refreshes the JTree to point on that particular path
|
39 | 46 |
|
40 |
| -![Capture_FileExplorer_RefreshButton]() |
| 47 | + |
| 48 | + |
41 | 49 |
|
42 | 50 |
|
43 | 51 | To go back to the Home Directory, click on the below Home Button
|
44 | 52 |
|
45 |
| -![Capture_FileExplorer_HomeButton]() |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +--- |
| 58 | +##### Bugs: |
| 59 | +1. some unexpected file names throw a runtime error, but they can be ignored as it doesn't affect the working of the application. |
| 60 | +2. After updating files, the explorer may not refresh automatically, refresh and home buttons will refresh the explorer to the current updated state. |
0 commit comments