Border layout and Jlist
From: Daniel Santos (daniel.dlds_at_gmail.com)
Date: 03/23/05
- Previous message: Thomas A. Russ: "Re: JFileChooser - Save File Type"
- Next in thread: Hiroshi Iwatani: "Re: Border layout and Jlist"
- Reply: Hiroshi Iwatani: "Re: Border layout and Jlist"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 23 Mar 2005 22:53:08 +0000
Hello,
I have the following structure of components in a internal frame:
JInternalFrame (BorderLayout)
- JPanel (BorderLayout) (BorderLayout.WEST)
- JScrollPane (BorderLayout.CENTER)
- JList
- JPanel (BorderLayout) (BorderLayout.CENTER)
- JButton (BorderLayout.CENTER)
What I want to do with this is to have the first JPanel with a fixed
width and resizable height and the second JPanel resizable in both
dimensions.
I set a preferred size on the JPanel containing the scroll pane and that
works.
My problem is that the JList appears with zero dimension. I just want
the list to stretch to the borders of the containing JPanel.
Anyone can help?
Many thanks
Daniel Santos
- Previous message: Thomas A. Russ: "Re: JFileChooser - Save File Type"
- Next in thread: Hiroshi Iwatani: "Re: Border layout and Jlist"
- Reply: Hiroshi Iwatani: "Re: Border layout and Jlist"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]