Questions tagged [filechooser]

A GUI component that allows to navigate over the file system, selecting files and folders of interest.

Usually file chooser is similar to the file explorer. It allows to navigate over the file system, selecting files and folders of interest or to specify yet non-existing files in the existing folder ("Save as").

File chooser can often be configured to show only set of selected file types, allow or disallow multiple selection and allow or disallow selection of folders rather than files.

This component is present in libraries of many languages.

472 questions
-1
votes
1 answer

JavaFX: Image not displaying in ImageView after moving file using Filechooser

In my JavaFX GUI, users are allowed to edit their posts which involves changing the existing image to the one uploaded by the user. That's where the function shown below comes in. postImage is the ImageView that I reference from the FXML file - …
-1
votes
1 answer

Why getClass().getResourceAsStream(file.getAbsolutePath()) throws nullPointerException?

After I've searched for a solution for my problem & reading similar questions which are very more professional than mine,... well, I hope you pay attention to my problem, even though it seems simple! I'm working on a project which open files by…
TEB
  • 7
  • 1
  • 7
-1
votes
1 answer

Why Can't I Double Click To Select A File With Java's JFileChooser?

I have a minimum Java Swing App to show the problem : when I opened a JFileChooser and tried to double click on a file on the right side column, it will try to move to the left column, no matter how fast I double clik on it, it won't be selected,…
Frank
  • 30,590
  • 58
  • 161
  • 244
-1
votes
1 answer

How to display path of selected image as a variable in another method?

I have two methods, get_image_one() opens a Tkinter filechoooser and returns an image which is displayed in a kv file. I want the selected image to be set as the source in method check_for_image() so that further processing can be done on the…
Berch
  • 185
  • 1
  • 13
-1
votes
1 answer

Allow user to select music files from computer into a processing sketch?

I'm creating a music visualiser. I am stuck on the part which allows the user to upload music tracks from their music library on their computer and have the visualiser respond to the beat of the specific song they have chosen. I have used the minim…
Z Iqbal
  • 59
  • 7
-1
votes
1 answer

what does System.out.println(pic.getId()); do? (and it's not working on my computer)

so I was reading Java tutorials on this website: http://www.java2s.com/Tutorials/Java/JavaFX/0555__JavaFX_FileChooser.htm and this code: FileChooser fileChooser1 = new FileChooser(); fileChooser1.setTitle("Save…
NewLearner
  • 153
  • 11
-1
votes
1 answer

Save XSSF workbook using Javafx Filechooser

i am trying to save an XSSF workbook that i created. With FileOutputStream out = new FileOutputStream(new File("example.xlsx")); wb.write(out); out.close(); i able to save it the workspace. wb is the Workbook. Now i want to save it…
DunKing
  • 1
  • 3
-1
votes
2 answers

JavaFX getting path of image store in Imageview with the help of filechooser need help D:

my question is that I need help with getting the path from a image within a imageview in fxml file as I need to store the path of the image in an object. I am using a filechooser to input image into the imageView. I am planning to store that path…
Devilsbats
  • 27
  • 1
  • 6
-1
votes
2 answers

Filechooser doesn't work in webview

When I open my app where I use an webview, I click on the filechooser en nothing happend. While I try is on the website in the browser it works. Why doesn't work the filechooser in a Android Webview?
Laurens V
  • 551
  • 1
  • 7
  • 19
-1
votes
1 answer

Javafx file chooser print name of file to term

Hey is there a method the will print the name of the file I choose to the term So I open a file using the javafx filechooser and am looking for a way to save the name of the file I opened in a string and print it to the terminal ? Thanks
-1
votes
1 answer

Make filechooser work JavaFx

I create a filechooser and i want to know how read a file from it: public void open(){ FileChooser fileChooser = new FileChooser(); FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter("TXT files (*.Txt)",…
deep_geek
  • 337
  • 2
  • 4
  • 13
-1
votes
1 answer

Need my JFileChooser for Mp3 data

Im trying to create my own Mp3 Player ... it is difficult for me to write an Jfile Chooser with Filter for Mp3 i have wrote my methode right in the GuiClas public void FileChooser() { JFileChooser chooser = new JFileChooser(); …
-1
votes
1 answer

I need to select or read only .config files via file chooser in java fx can any one help me

I need to get the file path of the .config folder only can any one help me
Faseem
  • 25
  • 1
  • 8
-1
votes
2 answers

Save image to Derby Database with Java

I have Problem to Save My Image Using File Chooser in derby Database. I want to build a File Chooser Method to get image from User and save the image into database . but now the image Would not be save in my database. Please Help me. Thank You My…
Reza
  • 33
  • 7
-1
votes
2 answers

How to Set a Filter through FileChooser class?

class Myfilter extends javax.swing.filechooser.FileFilter { public boolean accept(File file) { String filename = file.getName(); return filename.endsWith(".xml"); } public String getDescription() …
manujindal
  • 11
  • 2
1 2 3
31
32