aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Top window: JFrame or JDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Top window: JFrame or JDialog" Watch "Top window: JFrame or JDialog" New topic
Author

Top window: JFrame or JDialog

Leonardo Wang
Greenhorn

Joined: Feb 19, 2002
Posts: 17
I have only a GUI.
Which is more applicable for top window, JFrame or JDialog?
Thanks!
Leonardo Wang
Greenhorn

Joined: Feb 19, 2002
Posts: 17
I used to use JDialog. OK?
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
The design choices that you make have to be justified in your design document. If you use JDialog instead of JFrame have you good reasoning for the decision ? If not stick with the most common approach and use JFrame.
Siddharth Mehrotra
Ranch Hand

Joined: Aug 21, 2001
Posts: 185
i used a JFrame,
in case if JDialog, inorder to show it you wil need a parent frame to which the dialog will belong. So i guess you will be creating two objects to show a dialog and only one for showing JFrame.
and nevertheless, u can achive all that u can in frame as you can in dialog.


SCJP, SCJD.
Leonardo Wang
Greenhorn

Joined: Feb 19, 2002
Posts: 17
I use a JDialog without owner, not for particular reason, In the current system of our company, we have a series of windows and we use JDialog much more than JFrame. I decide to find a reason, say easy extension, so that I do not have to change JDialog to JFrame. :roll:
Siddharth Mehrotra
Ranch Hand

Joined: Aug 21, 2001
Posts: 185
leonardo,
it doesnt matter if its a JFrame or a JDialog,
its just that.. whatever you do, just make sure u have conviction in what you do, cos you have to prove your point there
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Top window: JFrame or JDialog