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 GUI requires MDI or Tabbed Pane? 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 "GUI requires MDI or Tabbed Pane?" Watch "GUI requires MDI or Tabbed Pane?" New topic

GUI requires MDI or Tabbed Pane?

Robert Konigsberg
Ranch Hand

Joined: Jun 23, 2004
Posts: 172
I know there are all these conversations about the GUI framework, and I've only skimmed them, so let me just ask this: has anyone successfully passed the exam by writing a GUI that leverages neither the MDI / Desktop style nor the Tabbed Panel style?

I've got to think there's an easy way to do this with frames/etc without coming off like a rookie. After all, the user interface is worth 10% of the final grade (I should say, my final grade.)

SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11776

Hi Robert,

I passed using CardLayout and a single window open at any time (no MDI) - 100% for my user interface.

I have also seen lots of posts where people didn't even go to my level of complexity. They used a dialog box to get startup information, a dialog box to get booking details, and everything else was in a single frame.

Having a simple interface wont make you appear to be a rookie - in fact a well designed simple interface may be preferable to a more complex interface that uses technology for the sake of the technology .

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Robert Konigsberg
Ranch Hand

Joined: Jun 23, 2004
Posts: 172
Ahh excellent. I did not know CardLayout until now. That is way better than a Tabbed Layout. Thanks for the advice!

mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
I was wondering what the emphasis on CardLayout was all about. Now I infer that it is for the life cycle stages of an application instance, ie where is the server? what is the query? what are the results?

My 1st response to the design of GUI is to have dialog for server location
And a North/Centre Border Layout for query/JTable.

Surely it is a good idea to see the query and results together, so the user can verify the results are for the intended query, ie check they performed the query they thought.

Is there any criticism of this approach?

What is the advantage of CardLayout? Is this in any way preferrable to dialogs?

Jon Entwistle
Ranch Hand

Joined: Feb 20, 2003
Posts: 118
I agree with your approach Mike - you can create an elegant and clean interface conforming to sound useability principles from a single frame with dialogs where appropriate.


Billy Tsai
Ranch Hand

Joined: May 23, 2003
Posts: 1304
use JTable

BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect
I agree. Here's the link:
subject: GUI requires MDI or Tabbed Pane?
It's not a secret anymore!