This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inputbox

 
Brian Cummins
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have two questions about inputboxes:

1.Is there any way of changing the title from "input"?

2. Is there any way of exiting the procedure if the cancel button is pushed(without using try catch)?

Thanks
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afaird that you will have to be more specific about the type in input box that you are using. Java provides many capabilities with its dialog boxes; try looking that the javax.swing.JDialog class.
 
Brian Cummins
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a JOptionPane
e.g

String input = JOptionPane.showInputDialog("Enter Value")
 
K Riaz
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Learn to use the API


showInputDialog(Component parentComponent, Object message, String title, int messageType)


Source
[ March 04, 2005: Message edited by: Kashif Riaz ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic