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

JavaFX - how to add all files from directory to TableView

Title says all. I want to directory of files to be read and then write to TableView. How to do this? I thought about treating files and folders in choosen directory as array and then open and add them one by on through loop but I don't know how to…
Michał Bil
  • 3,179
  • 5
  • 20
  • 24
0
votes
1 answer

How to get filename from FileChooserButton in PyGTK?

I'm using Glade and PyGtk to develop an application. Currently I'm using a button under a toolbar to open files using this code: def on_openVideo_clicked(self, widget): dialog = Gtk.FileChooserDialog("Please choose a video", self, …
sheshkovsky
  • 1,302
  • 3
  • 18
  • 41
0
votes
1 answer

Image chosen from gallery disappears from Imageview after application closes

I hope you can help me with my simple problem. I am trying to select an image to display on my Imageview from my gallery, It works but the thing is, It disappears after I close my app. Please check the code that I found below. iv=(ImageView)…
DEADPOOL
  • 83
  • 2
  • 15
0
votes
1 answer

File chooser is picking the wrong directory for exporting

I have a fairly simple program that once some data is entered into a JTable it can then be exported or "saved" to an excel spreadsheet. All of this is working fine and it is making a saved excel file perfectly. The problem I have run into is this:…
0
votes
4 answers

Button cancel JFileChooser still load file when clicked

You know, I have button to choose a file using JFileChooser. This is my code private void buttonFIleBrowserInPanelActionPerformed(java.awt.event.ActionEvent evt) { try { …
user2971238
  • 95
  • 1
  • 2
  • 9
0
votes
1 answer

Java reading a file from filechooser and executing two commands

I have this button, which opens the file directory on the computer and from where you can choose the file and execute the commands. I have each of them in a class, but only one of them is running. How can I make it execute first one class and then…
user3543711
  • 1
  • 1
  • 3
0
votes
2 answers

How to save an Image?

I am using javafx.stage.FileChooser to give the user ability to browse system and save the image he/she wants. this is my code: Stage fileChooserStage = new Stage(); FileChooser fileChooser = new FileChooser(); …
Gandalf
  • 2,921
  • 5
  • 31
  • 44
0
votes
1 answer

Java FX: FileChooser and file extension

I'm using Java 7 and I need to know, if it is possible to find out which filter extension was selected... I know that in JavaFX 8.0 we have a proper method, but I must work on lower version. But I have no idea, how to find out which filter is chosen…
Lui
  • 594
  • 3
  • 10
  • 23
0
votes
0 answers

Failed to read row 0, column -1 from a CursorWindow which has 1 rows, 6 columns

I'm getting an image file from the file chooser of Android : Intent.ACTION_GET_CONTENT and I'm struggling trying to get it's absolute path. when I select an image I execute this code : GetInfos g = new GetInfos(); Log.d("URI",…
user1079425
0
votes
1 answer

WebViewClient with file Chooser

I am currently working on an app which includes 2 webViews but there is a Problem: Both WebViews are "Extended" WebViews which use the Android Standard WebViewClient. Both pages are asking the user to select a photo, but when I use this…
Made by FA
  • 710
  • 2
  • 7
  • 27
0
votes
1 answer

Javascript - change image on web site to local file

I have a script where I want the end user to be able to specify an image (using a file chooser) to change the site's background to. But I don't want them to actually upload the file to the server, as that would not only be redundant (as they would…
Joey
  • 10,504
  • 16
  • 39
  • 54
0
votes
1 answer

saving files JExcel with Filechooser

I'm trying, to save an excel file using jxl, but when I try to save the file have to retype and save plain without content. I am using a class to generate the excel file. public class lsheet { public void fillData(JTable table, File file){ …
user1920626
0
votes
1 answer

gtk_file_chooser_get_filename, result not freed, memory leak?

My code: char* fileName; fileName=g_filename_from_utf8(gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)),-1,NULL,NULL,NULL); The string returned from gtk_file_chooser_get_filename() cannot be referenced, so it can't be freed. Is this a…
Carmine
  • 13
  • 2
0
votes
1 answer

File dialogue replacement?

I have a small app where some people can have a 1:1 chat with each other. Now I want to implement a possibility to share some files (images, sounds, whatever,...). My problem: I need a possibility to let the user choose such a file. Since I did not…
Elmi
  • 5,899
  • 15
  • 72
  • 143
0
votes
1 answer

How to show file chooser when button is clicked?

I am trying to upload image in my app and i want to show some choices when my upload button is clicked. Unfortunately it gives me this error. I dont know what is wrong with the code. I got this from hereTrying open a specific folder in android using…
IamMe.
  • 51
  • 3
  • 13