File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Panels and panels Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Panels and panels" Watch "Panels and panels" New topic
Author

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!!

*Swingphobia*
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Panels and panels
 
Similar Threads
Containers
JFrame panels NOT showing. WHY??
Tidy UI code...
JFrame panels NOT showing. WHY??
is it possible to capture all events?