Results 1 to 6 of 6
Thread: dialog box
- 07-10-2010, 04:02 AM #1
Member
- Join Date
- Jul 2010
- Posts
- 22
- Rep Power
- 0
- 07-10-2010, 04:19 AM #2
I'd have to read the API doc to tell you. Could you read it and save me the trouble?
- 07-10-2010, 04:52 AM #3
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Check out the Dialog Focus article.
- 07-10-2010, 06:07 AM #4
Member
- Join Date
- Jul 2010
- Posts
- 22
- Rep Power
- 0
a=Integer.parseInt (JOptionPane.showInputDialog(null,"1st number: ","find smallest",JOptionPane.PLAIN_MESSAGE)); //that will show a one dialog box with one textfieldI'd have to read the API doc to tell you. Could you read it and save me the trouble?
but I want 2 text filed in it...Heart is the only broken thing that still works.
-
Did you check out Rob Camick's article that is linked to above? I think that it will provide a nice answer to your problem.
- 07-10-2010, 11:44 PM #6
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
The long and short of it being that its doable, as JOptionPane lets you set the message as a JPanel (or other component). However, you do have to construct said panel yourself.
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
Similar Threads
-
About Dialog Modality...
By vaibhavspawar in forum New To JavaReplies: 1Last Post: 06-30-2010, 09:49 AM -
Dialog
By JavaLerner in forum AWT / SwingReplies: 27Last Post: 07-07-2008, 11:29 AM -
Example of SWT Dialog
By Java Tip in forum Java TipReplies: 0Last Post: 01-09-2008, 12:01 PM -
Dialog Box
By uncopywritable in forum New To JavaReplies: 2Last Post: 07-30-2007, 12:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks