Results 1 to 3 of 3
- 12-17-2007, 08:24 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 70
- Rep Power
- 0
- 12-17-2007, 09:40 AM #2
Member
- Join Date
- Aug 2007
- Posts
- 26
- Rep Power
- 0
There is a method in JOptionPane as
JOptionPane.showInputDialog(parentComponent, message, title, messageType)
where you can specify the title of the dialog too.
In your case you can do something like this:
String name = JOptionPane.showInputDialog(null, "Enter your name", "Enter name", JOptionPane.PLAIN_MESSAGE);
- 12-17-2007, 10:39 AM #3
Member
- Join Date
- Nov 2007
- Posts
- 70
- Rep Power
- 0
Similar Threads
-
String Title case
By bugger in forum New To JavaReplies: 6Last Post: 01-31-2012, 01:21 PM -
Pretty awesome - James Gosling receives Sexy Programmer Title
By tim marcus in forum EntertainmentReplies: 6Last Post: 10-23-2008, 11:21 AM -
String manipulation example (Title case)
By Java Tip in forum Java TipReplies: 0Last Post: 01-29-2008, 09:04 AM -
Hiding the frame’s title bar
By Java Tip in forum Java TipReplies: 0Last Post: 12-21-2007, 08:41 AM -
How can I add an ICON on a JDialog's Title-Bar?
By iimasd in forum AWT / SwingReplies: 2Last Post: 11-06-2007, 12:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks