Title: Java-File and Directory Information-Lesson 5
Duration: 17 minutes
Summary: This Java video is a combination of File information and Swing components. We start by laying out the design of the GUI. We create a ScrollPane and a TextArea. We add the TextArea to the scroll pane and we drop the ScrollPane in the center of the frame. We set the size and the visibility of the frame. We add some functionality that gives us the file information, and we append the information to the TextArea. We print out error information (in case the user did not select a file from the JFileChooser) in a message dialog.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: Java – File and Swing components
Keywords: JTextArea, JScrollPane, JFrame, BorderLayout, setSize(), setVisible(), File, JOptionPane, showMessageDialog, ERROR_MESSAGE, format, isDirectory, lastModified, getAbsolutePath, append, JFileChooser, isFile.