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
5
votes
2 answers

exclude the google drive option in browsing files through intent in android

this is a asked question but i did not solve it using that solution. Here is my code Intent intent = new Intent(Intent.ACTION_GET_CONTENT); Uri uri =…
manjari
  • 183
  • 1
  • 14
5
votes
3 answers

Android: Incorrect File name for selected file(From file chooser)

I have a screen where on a button click I open a file chooser and then I select a file named "Test.jpg" for further operation. I use following code to get name of that file. Uri uri = data.getData(); File file = new File(uri.getPath()); String…
Tushar Thakur
  • 956
  • 3
  • 15
  • 32
5
votes
1 answer

Restrict JavaFX FileChooser to initial folder

I want to restrict JavaFX File chooser to its initial directory. I've seen that it's possible in Swing (How do I restrict JFileChooser to a directory?) but I could not find anything similar in java fx. Is there a way to achieve this?
Tzach Solomon
  • 688
  • 8
  • 27
5
votes
1 answer

Set initial directory of JavaFX FileChooser

I would like to allow users of my program to open files only from a certain directory in the project folder. On Stack Overflow, I often find the following solution: chooser.setInitialDirectory(new File(System.getProperty("user.home"));, but I am…
lilmessi42
  • 313
  • 2
  • 3
  • 13
5
votes
1 answer

Why doesn't choose.files() open in the current working directory?

When I change the working directory (e.g., from dir1 to dir2) then try to use choose.files(), the first time choose.files() runs it goes to dir1. If I cancel and run choose.files() a second time, then it opens in dir2. How can I get choose.files()…
LM6
  • 149
  • 3
  • 11
5
votes
1 answer

How to get any type of file with intent.createChooser android

I have this code: protected void pickFile(View view){ ///Codigo que abre la galeria de imagenes y carga la imagen en displayedImage Intent intent = new Intent(); intent.setType("file/*"); …
user3013172
  • 1,637
  • 3
  • 15
  • 26
5
votes
0 answers

How to change fileChooser Open Dialog Buttons' Text in javaFX and make the original window from where it's launched inaccessible?

I want to use javaFX FileChooser class because i need the openDialog. The problem is that i want to change the Text of the Buttons "Open" and "Cancel" than make the Stage from where the openDialog is launched inaccessible. i'm using this code to…
ben
  • 143
  • 1
  • 8
5
votes
0 answers

JavaFX FileChooser and DirectoryChooser: accessory component

Swing's JFileChooser provides the setAccessory method to extend the file chooser by any Swing component, e.g. for a file preview or for the selection of options. Is there any similar possibility in JavaFX's FileChooser and DirectoryChooser?
Andi
  • 3,234
  • 4
  • 32
  • 37
5
votes
2 answers

I try to use QFileDialog for choose a file on PyQt but it don't run

I'm new on stackoverflow. I have a MainWindow on PyQt, I want click a button and open a QFileDialog for choose a file. The problem is: If I use a MainWindow, QFileDialog don't run. If I use a Dialog, QFileDialog run. This is my code for the…
Gianluca
  • 142
  • 1
  • 4
  • 13
5
votes
0 answers

JavaFX - display files in the DirectoryChooser

Is it possible to make the DirectoryChooser display files, not only directories? The same problem as described here JFileChooser select directory but show files but in JavaFX.
Maciej
  • 546
  • 4
  • 15
4
votes
1 answer

using the filechooser dialog with glade

I would like to ask if anyone knows how to use the filechooser dialog in glade and pygtk. (It should be very similar in any of the language bindings, and that is why I didn't specify the language.) Basically, the filechooser now looks like this:…
v923z
  • 1,237
  • 5
  • 15
  • 25
4
votes
2 answers

How to access all Harddrives in kivy FileChooser Python

how can I display all harddrives installed in the System (C,X,J) in a kivy FileChooser using either Listview or Iconview in kivy 1.11.1?
The Dev
  • 65
  • 5
4
votes
1 answer

JavaFX FileChooser new file

Is it possible to use the JavaFX File Chooser (or a similar alternative) to create new files? Entering the name of a non-existent file works on Linux (Ubuntu to be exact) but on Windows the file chooser does not allow that.
Lehks
  • 2,582
  • 4
  • 19
  • 50
4
votes
1 answer

Set program's directory as the initial directory of JavaFX FileChooser

I am using JavaFX. I would like to start a FileChooser from the directory of the program, the initial repository should therefore be that of the program. Here is my FileChooser declaration: FileChooser chooser = new…
AbdelKh
  • 499
  • 7
  • 19
4
votes
5 answers

How to disable submit button until all text fields are full and file is selected

I'm new to javascript / jquery so I may be missing something obvious, but I've found solutions that disable the submit button until all text fields are filled, and I've found solutions that disable it until a file is chosen. However, my form…
Codedstuff
  • 179
  • 1
  • 3
  • 11
1 2
3
31 32