• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Inputbox

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using a JOptionPane
e.g

String input = JOptionPane.showInputDialog("Enter Value")
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic