jQuery in Action, 3rd edition
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Panels and panels Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Panels and panels" Watch "Panels and panels" New topic

Panels and panels

Anna Hays
Ranch Hand

Joined: Nov 09, 2003
Posts: 131
Hi, I am wondering if having too many panels to make the desire look on the front end is bad? I know nested HTML table is bad, what about nesting panels in Swing? I have left my assignment for another few months now avoiding Swing. Does anybody know some good links on good practices on Swing? Not just how to use it.

Huge thanks!!

Robert Konigsberg
Ranch Hand

Joined: Jun 23, 2004
Posts: 172
Nested panels are a good thing. To some degree you are expected to leverage nested panels for complex GUIs. But more importantly, if you're clever you can separate functionality, or easily reuse a nested panel, either by using methods or extended classes:

Here's a contrived example:

Now this application (at least, mine) isn't really that big to warrant something like that, BUT, it is useful to have something like this:

That and some good documentation should (once again, I suspect) get you points for code clarity.

SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
I agree. Here's the link: http://aspose.com/file-tools
subject: Panels and panels
It's not a secret anymore!