Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NX: JFrame or JDialog?

 
Maria Lepschy
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
I have a guestion about my client side.
I have tree screens: the configuration view, the main view and the book contract view. I have defined the configuration view as JFrame and the others as JDialog. Now I am not sure that this is Ok. May be the main view( with the JTable and search panel) should be a JFrame?
Your answer is very important.
Regards,
Maria
 
Al Guzman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maria,
Do you have your Main View in a JDialog container? Hmmm... remember that a Dialog is like a popup window in HTML, it is commonly used for messages or user inputs. My opinion... :roll: I think will be a better idea to put your Main and Book Contract views in separate JFrames and the Conf View in a JDialog.
Good luck.
Al
PS: Both classes extends from Window but have different behavior.
 
Maria Lepschy
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Al. I think you have rigth.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!