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
0
votes
1 answer

display text in jtextfield takes too long

I would really appreciate your help; I'm using java (netbeans ide), i'm working with filechooser, when i choose a directory, i need to display it's path on a jtextfield. However nothing appears until the program is over (untill all the files of the…
sosono
  • 13
  • 1
  • 5
0
votes
0 answers

JavaFX FileChooser returning null even on file selection

I've tried searching for a solution but haven't been able to find one online. So I'm assuming I'm the only with the problem and posting the code and the output too. The dialog box shows up and on selecting a file, returns null instead of the file.…
0
votes
1 answer

(Java) FileChooser only allow specific file?

How is it possible to allow the user only to open a specific file? In my case I want only to allow to open the "myapplication.exe" file, which could be somewhere on my filesystem, so this is why I need the FileChooser. I only know how to allow…
Opa114
  • 518
  • 4
  • 12
  • 28
0
votes
1 answer

How to reset a selected path from file chooser in JavaFx

I have a reset and Draw button on a slide panel. I choose a desired file from file chooser, which is in RootLayout class, and pass the file path to a controller class. Then it does some processes and initializes field in DataCunstructor class. By…
Iman
  • 769
  • 1
  • 13
  • 51
0
votes
1 answer

Python & Kivy Attribute Error:

I am trying to make a code of file chooser using kivy & python on client & server base...Rest part of the code works nice but given part gives attribute error as "'ClientScreen' has no attribute 'openfile_from_filechooser'" In which part i am making…
0
votes
0 answers

Can I change the JFileChooser.getSelectedFile() method so that only a listed directory can be selected, i.e. no manually typing in of the folder name?

I'm looking for some help in customizing the JFileChooser.getSelectedFile() method in the code that follows. I'm looking into handling exceptions for this class. Everything is fine but I have found that when running the program and the dialogue…
JNicholas76
  • 31
  • 10
0
votes
1 answer

How to save image that user selected and save into a folder in my desktop

i would like to know on how to save a image that user selected previously. I only know how to allow user to select image. This is my current code I have. private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { JFileChooser…
CodeName
  • 559
  • 2
  • 6
  • 23
0
votes
0 answers

How to Browse for Multiple files using filechooser without sorting them?

i am trying to sync the indexes of a Listview and a list of type File. I am having problems when i try to add two elements once at a time. the Problem is caused by the Filechooser since it automatically sort the pre-existing files and the new…
Yehia Hesham
  • 13
  • 1
  • 5
0
votes
2 answers

Aceess only pdf file using Dropbox Chooser in ios

I downloaded a simple demo for Dropbox Chooser& its works fine for me. but How can I set file type for chooser same as for JS Chooser. JavaScript is able to set file type for chooser like as follow: set options param with extensions: ['.pdf',…
user2893370
  • 701
  • 1
  • 9
  • 23
0
votes
1 answer

Unable to store/retrieve files properly from NSDocumentsDirectory

One of the developer is implementing a phonegap project supporting cross platform(ios & android). Things are going weird whenever there ain't any plugin available for ios. I am exhausted with a requirement that has come up, we save pdf files…
Eshwar Chaitanya
  • 942
  • 2
  • 13
  • 34
0
votes
1 answer

how to use Storage Access Framework in a simple file upload code Button?

I'm new to android and I want to upload a file using Storage Access Framework to make users able to choose a file from it, what is the best simple way to do that and how? thank you for answering.
0
votes
0 answers

nothing shown in java applet html file chooser

When I use java applet to create a open file button, it can show a file chooser for me to choose the file, but when i access to the applet html page generated by netbean, a file chooser is shown after I clicked the open file button, but no directory…
LSY
  • 11
  • 2
0
votes
1 answer

Setting Extension Filter in FileChooser in javafx without description

I know a way of adding a file extension in FileChooser in javafx: FileChooser chooser = new FileChooser(); chooser.getExtensionFilters().add("JPG Files(*.JPG)", "*.jpg"); But is there any way I can do this without any description argument and…
Aditya Singh
  • 2,343
  • 1
  • 23
  • 42
0
votes
2 answers

How to set gtk file chooser button default to user's home folder

I've got a gtk file chooser button on my application I am writing in c# using Mono Develop. I would like to set the file chooser's default location to the users' home directory regardless of what user is running it. I've tried the ~/ short cut -…
Connel
  • 1,844
  • 4
  • 23
  • 36
0
votes
1 answer

Gtk filechooser example in Python hangs on Debian

I'm new to GTK. I've been looking for an answer to my question but I haven't found anything. The thing is that I want to use GTK FileChooser to select a file. I've been looking at the example available…
Roxy
  • 391
  • 2
  • 14