1

Is there an open file dialog box in Eclipse's Visual Editor? Like the windows or linux Open File dialog box.

Aviad Nissel
  • 196
  • 1
  • 13

2 Answers2

0

You open an existing file with the Visual Editor. Check the Right-click -> "Open With..." dialogue.

Thorbjørn Ravn Andersen
  • 68,906
  • 28
  • 171
  • 323
  • No, perhaprs I didn't explain it right. I am building a GUI, and I need the user to select a file from the file system. In VB for example there is some sort of file dialog that allows the user to select a file. I need something like that in Java (Visual Editor) – Aviad Nissel May 28 '11 at 11:45
0

If you are building a Swing GUI then you can use a JFileChooser Dialog. I am not sure that there is a visual widget for this in the VE but you do have an option to add any bean using the Choose Bean option. This article has a bit about using Choose Bean. However, I think it would be far simpler to do the File Chooser by code in response to an event such as a button click.

Vincent Ramdhanie
  • 98,815
  • 22
  • 134
  • 183