Good evening all, I was wondering what syntax I would use to get the size (mb) and the name of the selected file in my JFileChooser.
JFileChooser filedlg = new JFileChooser();
filedlg.showOpenDialog(null);
textField.setText(//File's name);
textField_1.setText(//File's size);
What would I use to replace the comments? All help is appreciated.