Results 1 to 5 of 5
Thread: Custom dialog?
- 06-07-2010, 10:21 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 14
- Rep Power
- 0
Custom dialog?
Hello ppl
I really do not know how to ask my question, so I'm just going to ask it.
I want to create a dialog window attached to a parent window. There are several ways to create a simple dialog, but I would like to create a more advanced dialog with multiple fields.
So I have got two questions:
How can I prevent the user from focusing on the parent
How do I export the input from my 'dialog' window (lets say two fields, a user name and a password) to a field on the parent JPanel.
I know you guys know the answer - I'm just another Java newbie.
Thank you in advance!
- 06-07-2010, 12:20 PM #2
- 06-07-2010, 12:38 PM #3
Member
- Join Date
- Jun 2010
- Posts
- 14
- Rep Power
- 0
Hello phHein
Thanks for your reply. Unfortunately my dialog is not really a dialog, but a JFrame. Now, according to the API, I cannot use setModal(true) on a JFrame.
thanks in advance!
- 06-07-2010, 12:44 PM #4
That's why you should use a JDialog. Get the contentPane of your JFrame and set it as the contentPane of a JDialog, just to test the functionality.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 06-07-2010, 12:52 PM #5
Member
- Join Date
- Jun 2010
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
Custom JCheckBox with a corresponding Dialog box
By divgrad.chris in forum AWT / SwingReplies: 1Last Post: 04-15-2010, 09:59 PM -
How to create custom Input Dialog
By Bab in forum SWT / JFaceReplies: 2Last Post: 08-02-2009, 12:21 PM -
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