Article View: borland.public.jbuilder.java.swing
Article #10798GUI building: JPanels inside JPanels
From: Charles May
Date: Wed, 11 Aug 1999 00:00
Date: Wed, 11 Aug 1999 00:00
33 lines
2261 bytes
2261 bytes
I've built a number of somewhat complex gui screens for a business application. The problem is, many of these screens (JPanels) are made up of rather complex JPanels which sit inside the each screen. In cases like this, it would be nice to be able to use JBuilder's visual design tools to design each of the "inner" JPanels as an inner class, since the inner panels are not reused by any other components in the application but each sits alone as a meaningful unit. I don't see the reason to create a bean for each of these panels...what I want is to use inner classes. The trouble is, JBuilder3's visual design tools will not display inner classes (even if they have no-arg public constructors and each have their own jbInit() method). So when I put my composite JPanel together, I "see" nothing in JBuilder. As a half-solution to this problem, I have put each "screen" (composite JPanel) in its own package, and all the JPanels which make up the corresponding screen in the same package. At least now I can view the individual JPanels as I design them, and I'm able to preserve some independence of namespace in between each of the individual panels. I still can't see the composite JPanel in JBuilder, however. None of this is a problem when executing using the JDK, incidentally (I'm using 1.2.2, launching from JBuilder). So, GUI builders, is my approach a reasonable one? Should I expect JBuilder to be able to handle inner classes in the manner I'd like in the near future? -Charles May Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
Technical Details
Message-ID:
<7os0r7$8u0$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,fab442ea4f62b77f,start X-Google-Attributes: gid111d45,public From: Charles May <charles_n_may@my-deja.com> Subject: GUI building: JPanels inside JPanels Date: 1999/08/11 Message-ID: <7os0r7$8u0$1@nnrp1.deja.com> X-Deja-AN: 511439117 X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 136.142.23.159 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Aug 11 14:20:35 1999 GMT X-MyDeja-Info: XMYDJUIDcharles_n_may Newsgroups: borland.public.jbuilder.java.swing X-Http-User-Agent: Mozilla/4.04 (Macintosh; I; PPC)