I met a problem on the GUI. I put a jTabbedPane in a jInternalFrame.
The jInternalFrame is contained at a main Frame. When the main Frame's
size is enlarged, I use jInternalFrame.setMaximize(true) to enlarge
the jInternalFrame. But the jTabbedPane's size is not enlarged with
the jInternalFrame's change.
The panel stucture of the jInternalFrame is
"contentPane(borderlayout)->jPanel(null)->jTabbedPane->jPanel(flowlayout)"
I spend hours on this one. this is so weird. I still think there is a
way
to resolve this issue.
Thanks for any idea. :D
> I met a problem on the GUI. I put a jTabbedPane in a jInternalFrame.
> The jInternalFrame is contained at a main Frame. When the main Frame's
[quoted text clipped - 4 lines]
> The panel stucture of the jInternalFrame is
> "contentPane(borderlayout)->jPanel(null)
What? JPanel(null)? This is the problem.
> ->jTabbedPane->jPanel(flowlayout)"
>
> I spend hours on this one. this is so weird.
It's not weird at all, You have a component in the chain without a layout
manager. This prevents the size change from propagating through to the
inner components. For simplicity's sake and until you start fine-tuning
your layout, use all BorderLayouts and put everything in the center.

Signature
Paul Lutus
http://www.arachnoid.com
Raine Wang - 15 Oct 2004 20:34 GMT
Hi Paul,
Thank you so much. The problem is fixed. :)
> > I met a problem on the GUI. I put a jTabbedPane in a jInternalFrame.
> > The jInternalFrame is contained at a main Frame. When the main Frame's
[quoted text clipped - 15 lines]
> inner components. For simplicity's sake and until you start fine-tuning
> your layout, use all BorderLayouts and put everything in the center.
> I met a problem on the GUI. I put a jTabbedPane in a jInternalFrame.
> The jInternalFrame is contained at a main Frame. When the main Frame's
[quoted text clipped - 7 lines]
> way
> to resolve this issue.
the right way is:
contentPane(borderlayout)->jTabbedPane->jPanel(flowlayout)

Signature
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities