Win a copy of Functional Reactive Programming this week in the Other Languages 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic