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
0 answers

Getting local path of a file

I'm using File Chooser to select an image to add it's path into database. Well, I can only get the FULL path of my file. Is there a way to get only the local path, starting from my project's directory ? Instead of get: …
PlayHardGoPro
  • 2,791
  • 10
  • 51
  • 90
0
votes
2 answers

Deleting a file(s) through FileChooser?

I have a JavaFX app using JRE1.8.0 u40. I converted my Swing JFileChooser Open and Save to the newer JavaFX FileChooser Open and Save, Windows7 style Dialog box. But I have not found an equivalent JavaFX FileChooser method to replace the…
sgroen
  • 29
  • 1
  • 8
0
votes
0 answers

Trouble with the choose.files()-function in R

I want to open several files with R and therefore use the function choose.files(), which is frequently recommended here in stackoverflow for this purpose. Anyway, this does not work in my code, and I would be very happy if someone can tell me what`s…
M_Be
  • 1
0
votes
1 answer

JavaFX FileChooser initial directory

In Swing, the JFileChooser pointed to the user's default directory which is typically the "My Documents" folder in Windows. The JavaFX FileChooser does not have the same behavior by default. There is a setInitialDirectory method which should be…
Tommo
  • 977
  • 14
  • 35
0
votes
1 answer

Android: Resolve URI paths when opening a pair of files

I am adding support for importing a specific type of file format from another (Windows) app. This particular format keeps the data in a pair of files. These files use the same filename, with different extensions, eg myfile.ext and myfile.ex2. The…
Oyvind
  • 568
  • 2
  • 6
  • 22
0
votes
1 answer

Java: importing csv containing empty fields gives NullPointerException

I've been trying to import a csv file (containing empty fields) by selecting the file with a filechooser into my database. Using the filechooser is important as it is a program to be used by a school and they want to be able to import their new…
user2270715
  • 23
  • 1
  • 1
  • 4
0
votes
0 answers

Save a TextArea as PDF using Java 8 and PDFBox

I am trying to save a TextArea as PDF using PDFBox with Java 8. The file gets saved fine and open fine as well. But the file stores the TextArea as one line. I tried to split the TextArea and loop through it with drawString on each split but it's…
Moe
  • 1,427
  • 4
  • 34
  • 54
0
votes
1 answer

Get folder path from FileChooserButton in Python

I'm trying to make a basic file transfer GUI app using Python and Glade, and I've hit a bit of a snag while trying to get the path from the File Chooser Dialog. I've tried everything I know and could find but was unsuccessful. The .glade file is…
Faryus
  • 161
  • 1
  • 4
  • 14
0
votes
0 answers

How to properly import a new file into my media player

I cant seem to get a new file loaded into my media player. Any idea why? I have tried using the Jfilechooser for swing but it wasn't compatible and I cant get the FX version to work. I am able to get the file open bar to show up. I can even see the…
0
votes
0 answers

Android intent to pick file not running activity

I have a problem with intents in Android. In my project, I'd like to open file using one of the installed file managers. I'm creating my intent and it invokes option to choose which file manager to start and starts this file manager, but I don't see…
Adam P
  • 85
  • 1
  • 13
0
votes
0 answers

firefox filechooser filters tiff files

In firefox 39, this input's filechooser incorrectly filters out files with the extension .tif, but will (correctly) no filter .tiff…
jedierikb
  • 12,752
  • 22
  • 95
  • 166
0
votes
0 answers

How to determine if the selected file in a FileChooser dosen't equal to the list of the Extensions? javafx

i'm writing a program that manage the photos and there is a button that open a file chooser this program allow just the files with extension *.png so iwant to determine if the selected file is not with extension*.png do something. How i can do so…
Zerro
  • 13
  • 2
  • 4
0
votes
1 answer

Pick .csv file then import on .db

I've seen some resources where importing file to .db but it's not a dynamic. How can I make my application that when I choose any file like .csv or .xls and then click on a button it is import-ed it in the .db?
Jonathan
  • 13
  • 5
0
votes
1 answer

How can I block a JComponent from another class?

I am trying to disable a JComponent from another class, similar to a modal dialogue. In my case, I'm invoking a JavaFX dialogue from a Swing component; more specifically a FileChooser. Since, for example, showOpenDialog expects an…
Steffen
  • 3,999
  • 1
  • 23
  • 30
0
votes
0 answers

how to connect a php file chooser, upload button using android studio

here is my java code for setContentView(R.layout.activity3); WebView myWebView = (WebView) findViewById(R.id.webview); myWebView.setWebViewClient(new WebViewClient()); myWebView.setWebViewClient(new WebViewClient()); …
sajas
  • 1