Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Contractor, a generic way to capture input

 
Timothy Johnson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Gang,
I'm currently writing the GUI piece and my application launcher class. Depending on the mode passed at application launch time, I'm going to need to get either the db file location or the ip/hostname for my RMI server.
Question is... I could use something like JOptionPane or I could write my own JFrame component. I'd rather leverage a Swing component but I'm yet to stumble onto one that will allow me to pass a JFileChooser in so that the user can search for the db file location. I've got no problem with the user using a JTextField for the server location, but I'd like to do better for the db file location.
Or I guess I could assume that any user running the app in standalone mode or starting the server is really a "power user" and capable of keying in a valid file path. This being the case, I could just use the static input methods on JOptionPane and be done with it, but I wanted to get some feedback first.
Thanks,
Tim
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had made my own JFrame. But you are right it would be nice to use a built in class that could do it. But if a built in calss can't add the funtionality that you want, then writing yourself is the choice.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic