• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

eclipse plugin file dialog

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
U can change the dialog caption by "select".
 
pj Fogarty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i dont understand ?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic