Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

eclipse plugin file dialog  RSS feed

 
pj Fogarty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have afile dialog box for selecting an output file,but with this i actually click open to select it,and use the string this returns as my outputfile,
what i am looking for is a dialog box,that more or less does the same thing but has a select button instead of open.

THANKS
PJ
 
shan sundaram
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U can change the dialog caption by "select".
 
pj Fogarty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont understand ?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15861
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a standard Swing JFileChooser?

And what exactly do you want to do, you just want the text "Select" instead of "Open" on the Open button?

Look at this: How to Use File Choosers - scroll down a bit, there's a description of how to customize JFileChooser, including how to change the text on the Open button.

*edit*: I've just had a look at the API documentation, it's actually very simple - the JFileChooser class has a showDialog(...) method with two parameters: the parent component and the text that should be displayed on the button. See the API documentation.
[ July 12, 2006: Message edited by: Jesper Young ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!