Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Top window: JFrame or JDialog

 
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?
 
Ranch Hand
Posts: 704
  • 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.
 
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
 
    Bookmark Topic Watch Topic
  • New Topic