List of usage examples for javax.swing JFileChooser JFileChooser
public JFileChooser()
JFileChooser
pointing to the user's default directory. From source file:Main.java
public static void main(String[] args) { JFileChooser jfc = new JFileChooser(); jfc.showOpenDialog(null); }
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); boolean enabled = chooser.isFileSelectionEnabled(); chooser.showOpenDialog(null);//from ww w .j a va2 s.c om }
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); boolean enabled = chooser.isMultiSelectionEnabled(); chooser.showOpenDialog(null);//from w ww . jav a 2s.c om }
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); boolean hidingEnabled = chooser.isFileHidingEnabled(); chooser.setFileHidingEnabled(false); chooser.showOpenDialog(null);/*w w w . j av a 2 s . co m*/ }
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); boolean enabled = chooser.isDirectorySelectionEnabled(); chooser.showOpenDialog(null);/* w w w . j av a2 s . co m*/ }
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); boolean enabled = chooser.isAcceptAllFileFilterUsed(); chooser.showOpenDialog(null);/*from w ww. ja v a2 s. c om*/ }
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); // Set the text chooser.setApproveButtonText("New Approve Text"); // Set the mnemonic chooser.setApproveButtonMnemonic('a'); // Set the tool tip chooser.setApproveButtonToolTipText("New Approve Tool Tip"); chooser.showOpenDialog(null);//from w w w . j a v a 2 s . c om }
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); // Set the text chooser.setApproveButtonText("New Approve Text"); // Set the mnemonic chooser.setApproveButtonMnemonic((int) 'a'); // Set the tool tip chooser.setApproveButtonToolTipText("New Approve Tool Tip"); chooser.showOpenDialog(null);//from w ww . j a va 2 s.co m }
From source file:Main.java
public static void main(String[] a) { JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); fileChooser.showSaveDialog(null);/*w w w .j av a 2s. c o m*/ }
From source file:Main.java
public static void main(String[] a) { JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); fileChooser.showOpenDialog(null);//from w ww .ja v a 2s.c om }