File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: JFrame or JDialog?" Watch "NX: JFrame or JDialog?" New topic

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.
Al Guzman

Joined: Oct 07, 2002
Posts: 4
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.
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.
I agree. Here's the link:
subject: NX: JFrame or JDialog?
It's not a secret anymore!