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

Is there a method similar to getSelectedFile in JavaFX that returns a File?

Is there a method similar to getSelectedFile in JavaFX that returns a File? I have tried this code now trying to perfect the commented out //fileToSend[0] @FXML private void chooseButtonAction(ActionEvent event) throws IOException { FileChooser…
-2
votes
2 answers

What are the file extensions that python can read their content?

I am working on an app that will be something like a text editor, using kivy. I included a FileChooser to choose a file to edit, I included a try except to catch the problems of files readability like videos and executable files.The problem is that…
Taha LYOUSFI
  • 21
  • 1
  • 6
-2
votes
1 answer

Problem getting fileChooser to work on a stage, not sure how to set the proper stage?

I am new to JavaFx and to using filechooser on a current stage to get the file name and path to a file. I have created test code to show the problem I am having... test_main.java package view; import javafx.application.Application; import…
-2
votes
1 answer

Selected Files can not display in FileChooser in JavaFX

I have problem with my code where i want to know selected file in file chooser, i try with system.print.ln can respon selected file but with text take result null. Where error happen?
donyk
  • 1
  • 2
-2
votes
1 answer

Java write to file and save it by fileChooser

I am new to java and moving my codes since last two years from VB to java using netbeans 8 . Now i want to write loop acumalted data to file and last to save produced file to specific place using FlieChooser below is my code but i can't see any…
Mohamed Bawaneen
  • 139
  • 1
  • 12
-2
votes
3 answers

How to restrict a JFileChooser to a custom file type?

I am having slight trouble with JFileChooser. I want to restrict to only read certain kind of files. Another stack answer recommended using a FileNameExtensionFilter, but this doesn't seem to be working. This might be because I have to restrict it…
siddhant
  • 15
  • 5
-4
votes
2 answers

how to get a real path of PDF file in android

we want to choose a pdf file using intent from a gallery so how can get a real path of a pdf file. We want to choose a PDF file from a gallery and upload this file on a server.
thakur neha
  • 11
  • 1
  • 5
1 2 3
31
32