Question « JFileChooser « Java Swing Q&A





1. JFileChooser question    coderanch.com

Hello all, I have a quick little question about this class. For the most part the docs are straightforward but I am having one small problem created a SAVE File dialog. I have a situation where the name of the file is pre-populated in the file name text field when the save dialog pops up. So basically I need the user ...

2. JFileChooser's question!!    coderanch.com

3. JFileChooser opendialog question    coderanch.com

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Test { JFrame f; public Test() { Boolean b = UIManager.getBoolean("FileChooser.readOnly"); System.out.println("b = " + b); UIManager.put("FileChooser.readOnly", Boolean.TRUE); final JFileChooser fc = new JFileChooser("."); JButton open = new JButton("open"); open.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { int retVal = fc.showOpenDialog(f); } }); JPanel north = new JPanel(); north.add(open); f = new JFrame(); ...

4. JFileChooser Question    coderanch.com

5. JFileChooser question    coderanch.com

I tried to break into the plaf code but didn't have any success. There's a note at the top of MetalFileChooserUI that says the designers are going to do a complete rewrite soon so everything is marked 'private'. So I dropped back to an old friend: going through the component hierarchy. import java.awt.*; import java.awt.event.*; import javax.swing.*; public class FileChooserTest { ...

6. Stupid question about JFileChooser    coderanch.com

Hello! /****************DISCLAIMER****************/ I am a self-taught, beginning programmer with Java. So what, you asked? Well, there is a *lot* of the "basics" that I don't have...lots of things that aren't so obvious to me. You have been warned. /****************DISCLAIMER****************/ I have a built a very simple application using Swing & JFileChooser. All that is does is open up Oracle SQL*Loader log ...

7. I have question about JFilechooser?    coderanch.com

8. jfileChooser - memory question    java-forums.org

Hi , This is my first post in this forum ... so, Hi to all of you! I am having a memory consumption just making click to open a filechooser. The application starts with about 45 mb but after 50 clicks on the filechooser buttom the appication reaches about 95 MB . The OK buttom is never pressed ...so part of ...

9. Questions about JFileChooser    forums.oracle.com

I don't want the user to select a file to open, I want them to select a directory to SAVE a file in. Yeah do i have to use a different function besides JFileChooser or do I just have to use some parameter? Also, say you have a file called THEFILE, is there a way to check and see if there ...





10. JFileChooser and date format questions    forums.oracle.com

11. JFileChooser question    forums.oracle.com

Hi everybody, I'm trying to use a JFileChooser, and I'm trying to have it display only certain types of files, like only .txt, or only .txt and .rtf--whatever extension(s) is(are) necessary for a particular chooser. I've looked at the Java tutorials and some things on this board, but I really don't understand how to make this happen. Would anyone be willing ...

12. JFileChooser question?    forums.oracle.com

13. JFileChooser Question    forums.oracle.com

I have a JFileChooser that allows the user to select multiple image files to create a slideshow. I want to show the files in the order that the user selected them with the JFileChooser. The problem is that the JFileChooser returns the files via the getSelectedFiles() in sorted order, sorted by file name, and I need to know the order that ...