Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Top window: JFrame or JDialog

 
Leonardo Wang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have only a GUI.
Which is more applicable for top window, JFrame or JDialog?
Thanks!
 
Leonardo Wang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used to use JDialog. OK?
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Leonardo Wang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic