Java Swing Dialog Box
Hi,
I am currently trying to implement a multiple input field Dialog Box without much success ! I have heard that it is not possible to use the JDialogBox as it is limited to one input field, I need three! any ideas ?
Web Development
Hi,
I am currently trying to implement a multiple input field Dialog Box without much success ! I have heard that it is not possible to use the JDialogBox as it is limited to one input field, I need three! any ideas ?
by okujava
JDialog is not limited to any number of components. you can instanitate components and add to the contentpane of JDialog without constraints.
see:
http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/index.html#DialogDemo
andCustomDialog.java
by @ndrew
by afsarp
Jdialog is also a container, so you can place all the required components as you like.
It basically depends on its parent for launching it. you can get the complete documentation on
http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html
by @ndrew
by danym
If you really mean JDialog try this:
dialog.getContentPane().add(field1);
dialog.getContentPane().add(field2);
dialog.getContentPane().add(field3);
I hope this help you
by @ndrew
by @ndrew
This discussion is closed to new replies.
Sort by Trending