jfilechooser Questions
4
Solved
I seem to have a problem with my very simple implementation of a file chooser dialogue that requires me to minimize Netbeans each time in order to get to it, and it gets pretty frustrating speciall...
Modred asked 26/2, 2011 at 19:44
2
A recent question asked: How can I start the JFileChooser in the Details view? and the answer provided a nice technique for doing that.
I'd like to raise the aspiration here one level: given that ...
Kinna asked 7/5, 2013 at 22:42
2
Solved
I want to include an additional (optional) JTextField in the FileChooser, allowing the user to fill it in while choosing the file rather than giving them an additional prompt after they make their ...
Scarify asked 28/1, 2010 at 16:59
3
Solved
I am having some trouble using the JFileChooser. Whenever I run the program if I click the "cancel" button right away without selecting a file it will display "hello" and if I click open, it will n...
Vibration asked 10/6, 2013 at 23:13
3
Any idea how to make the Java Swing file chooser
look better on 2K displays where the windows
font scaling is > 125%?
I am using ordinary code such as:
JFileChooser fc = new JFileChooser();
if (s...
Elisabetta asked 22/4, 2015 at 9:45
3
Solved
Apparently, there are (at least?) two different native File choosers on Windows (10). There is this one, which is used by JFileChooser and other programs:
And there is that one, for example used ...
Poppo asked 2/10, 2016 at 16:48
3
Solved
I have had a problem concerning the JFileChooser for a long while now and haven't been able to find help... The problem is that the file window is not showing up. I have tried to find the cause of ...
Trend asked 8/11, 2015 at 21:3
5
Solved
I am trying to add an extension to the name of file selected by a JFileChooser although I can't get it to work.
This is the code :
final JFileChooser fc = new JFileChooser();
fc.setFileSelection...
Denude asked 1/4, 2012 at 18:0
2
Opening files in java seems a bit tricky -- for .txt files one must use a File object in conjunction with a Scanner or BufferedReader object -- for image IO, one must use an ImageIcon class -- and ...
Culhert asked 15/12, 2014 at 3:13
3
Solved
I'm having a little problem when I change Locale at runtime.
The Goal
I have to change the Locale of my application language according to a configuration file.
This locale does not necessarily...
Renaerenaissance asked 3/7, 2013 at 10:52
8
Solved
I'm writing a diagram editor in java. This app has the option to export to various standard image formats such as .jpg, .png etc. When the user clicks File->Export, you get a JFileChooser which has...
Therewith asked 27/2, 2009 at 20:9
4
Solved
I have a question about the JFileChooser in Swing. I'm trying to get multiple file extensions in the drop-down box, but have no idea how to do it.
There is the method
extFilter = FileNameExtensio...
Exasperation asked 15/3, 2010 at 20:24
9
Solved
I feel like there should be a simple way to do this but I can't figure it out. I have a JFileChooser that allows the user to select directories. I want to show all the files in the directories to g...
Wiese asked 21/5, 2010 at 15:34
7
Solved
I want to change the default directory of my JFileChooser to "My Music" on Windows.
This directory is C:\Users\Fre\Music on my account because my username is Fre
The default is set on C:\Users\Fre...
Slalom asked 22/11, 2012 at 16:29
2
I made a FileChooser program that gets the file path of .wav files but right now I want to add another condition. I only want to get the file path of wav files that has a maximum of 5 minutes. How ...
Nigh asked 9/11, 2015 at 13:21
3
Like some other people who have asked similar questions, I was going nuts trying to 'fix' my JFileChooser dialog box generation code until I noticed that it is being generated, but it is appearing ...
Cystolith asked 3/7, 2013 at 2:9
6
Solved
I am putting a JFileChooser in my program, but that only takes images. So I decided to add filters:
Code
import javax.swing.*;
public class fileChooser {
public static void main(String[] args) {...
Sialkot asked 22/11, 2012 at 17:43
1
The users of our software need to browse network shares on Windows 10 in our Java swing application, however swing's JFileChooser does not have this capability by default.
In this related post
How...
Rosinski asked 6/11, 2018 at 22:58
2
Solved
I want to customize my JFileChooser so that instead of saying "Folder Name" at the bottom I want to set it to say "Picture Name" and at the text field I don't want that to change based on where i'm...
Nazi asked 13/7, 2013 at 14:16
6
I am trying to set the directory path in JFilechooser through something like this(using commons-io ) :
String fileContents = IOUtils.toString(new FileInputStream("path.txt"));
File theDirectory = ...
Dunedin asked 19/4, 2011 at 19:19
5
Solved
I'm trying to save a file using JFileChooser. However, I seem to be having some trouble with it. Here's my code:
if (e.getSource() == saveMenu) {
JFileChooser chooser = new JFileChooser();
cho...
Hallah asked 9/6, 2013 at 14:30
2
Solved
Good afternoon all,
I have an instance of a javax.swing.JFileChooser and I added a few choosable javax.swing.FileFilters using addChoosableFileFilter.
However when I show the dialog (through show...
Tenancy asked 20/2, 2012 at 10:19
5
Solved
I've a request to make some changes to a little applet that currently use a JFileChooser.
One of the main complaints is that the file chooser is a pain in the ass to use because it behaves differen...
Rapper asked 17/4, 2009 at 7:32
3
Solved
My problem here is,
after clicking Browse button it displays all files in a directory to choose,
then the chosen image is displayed in GUI correctly. But When i click Browse button
for the second t...
Electrotechnics asked 22/11, 2012 at 12:19
4
Solved
private void openMenuActionPerformed(java.awt.event.ActionEvent evt) {
DBmanager db = new DBmanager();
if (!db.getCurrentUser().equals("Admin")) {
JOptionPane.showMessageDialog(this,...
Katabolism asked 2/9, 2013 at 14:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.