automatically maximize JTable?
- From: matomira@xxxxxxx
- Date: 27 Jun 2005 06:59:10 -0700
I have a JTable inside a JScrollPanel in the CENTER of a Panel with a
BorderLayout (at the EAST there are some buttons, and the panel is
inside some other panel/box).
How can I do to get this scollpanel/table combo to fit all the
available space in the panel, besides that taken up by the buttons?
I found the call setPreferredScrollableViewportSize() can be used to do
this resizing, but I don't know from where this can be called, and how
one would compute this preferred size.
I find Swing to be a really primitive toolkit when it comes to layout.
.
- Follow-Ups:
- Re: automatically maximize JTable?
- From: Christian Kaufhold
- Re: automatically maximize JTable?
- From: Pete Barrett
- Re: automatically maximize JTable?
- From: Andrew Thompson
- Re: automatically maximize JTable?
- Prev by Date: Re: JFrame as JApplet?
- Next by Date: Re: Angled lines in JTree
- Previous by thread: J2ME PhD Job Offer Belgium
- Next by thread: Re: automatically maximize JTable?
- Index(es):