This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: JFrame or JDialog? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: JFrame or JDialog?" Watch "NX: JFrame or JDialog?" New topic
Author

NX: JFrame or JDialog?

Maria Lepschy
Ranch Hand

Joined: Jan 12, 2004
Posts: 78
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

Joined: Oct 07, 2002
Posts: 4
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.


SCJP SCWCD Coming soon: SCJD
Maria Lepschy
Ranch Hand

Joined: Jan 12, 2004
Posts: 78
Thank you, Al. I think you have rigth.
 
Consider Paul's rocket mass heater.
 
subject: NX: JFrame or JDialog?
 
Similar Threads
JDialog
fix JDialog position relative to its parent JFrame component
NX: Client design
JFrame
JFrame Calls..