Top "Jfilechooser" questions

JFileChooser is a Java Swing component to provide a simple mechanism for the user to choose a file.

Windows look and feel for JFileChooser

I'm trying to generate a JFileChooser that has the Windows look-and-feel. I couldn't find a method to change it, so …

java look-and-feel jfilechooser
Add .txt extension in JFileChooser

I have a method that get text from a JTextArea, create a file and write text on it as code …

java swing jfilechooser
Opening files with JFileChooser

As a little side project I'd thought it would cool to make a text editor. I'm currently stuck on opening …

java file swing jfilechooser
How to restrict file choosers in java to specific files?

private void openMenuActionPerformed(java.awt.event.ActionEvent evt) { DBmanager db = new DBmanager(); if (!db.getCurrentUser().equals("Admin")) { JOptionPane.showMessageDialog(this, "…

java swing jfilechooser
How to use JFileChooser.showOpenDialog() in a non component class?

I have a Java GUI project containing a JMenuBar and I just added a JToolBar. In the previous version, the …

java jfilechooser
JFileChooser - open in current directory

I have a simple JFileChooser set up in the following manner JFileChooser chooser = new JFileChooser(); chooser.setCurrentDirectory(new File(".")); chooser.…

java swing jfilechooser
adjust selected File to FileFilter in a JFileChooser

I'm writing a diagram editor in java. This app has the option to export to various standard image formats such …

java swing jfilechooser
JFileChooser select directory but show files

I feel like there should be a simple way to do this but I can't figure it out. I have …

java swing jfilechooser
Setting file creation timestamp in Java

I know setting the creation timestamp doesn't exist in Java because Linux doesn't have it, but is there a way …

java file date jfilechooser
Add JFileChooser to Eclipse Window Builder

I am new to eclipse window builder and want to create a simple GUI with it. I want to add …

java eclipse swing jfilechooser windowbuilder