Skip to content
Advertisement

Tag: jfilechooser

java JFileChooser how to temporarily disable file selection window

Is there a way how to temporarily disable file chooser in the JFileChooser window? I created custom preview JPanel and I need the next file selection to be made only after the file preview is done/created (it created image from Wavefront OBJ files when such obj file is selected in the file chooser window). Maybe some sort of disabling the

How to save an image using JFileChooser

Background info: I’ve made a program that uploads an image using JFileChooser and have made fill in the space of the JFrame. My Question: I’ve attempted implementing my method on a save button and so far I can pull up the JFileChooser but it will not actually save the image. So how would I go about saving the same image

Possible to remove Title bar from JFileChooser?

I am trying to display a simple JFileChooser that has no Titlebar. Below is the example code: So essentially I want the Border I set to be the top level Title bar. Example image: So far I have had zero luck achieving this, nor found any others looking for a similar appearance. Appreciate the help! Cheers Answer The JFileChooser is

JFileChooser change default directory in Windows

I want to change the default directory of my JFileChooser to “My Music” on Windows. This directory is C:UsersFreMusic on my account because my username is Fre The default is set on C:UsersFreDocuments (depends on OS i think). How can I change this? Answer You can use the API method setCurrentDirectory when initializing your JFileChooser objects: Sample usage might be

Advertisement