Re: JTable sizing
- From: Larry Coon <lcnospam@xxxxxxxxxx>
- Date: Mon, 13 Mar 2006 12:51:16 -0800
Vova Reznik wrote:
You don't have horizontal scroll because you defined auto resize mode.
Horizontal bar will appear if you will turn it off
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
Thanks Vova, but that's still not doing what I want. Setting
AUTO_RESIZE_OFF makes it so that the columns won't resize when
the window is wider than necessary. Maybe what I want it to do
just isn't the way this is supposed to be done, but let me
describe it further:
-- Each column has a minimum width.
-- The window initially opens exactly large enough to show
all columns at their minimum widths, without a horizontal
scroll bar.
-- If the user makes the window wider, the right column (and
only the right column) widens to accommodate the new size
of the window.
-- If the window is wider than the minimum required to show
all the columns, then the user can resize any column.
-- If the user resizes the window smaller, so there's not
enough space to display all columns at their minimum
width, then (and only then) a horizontal scrollbar
appears.
Can this be done?
Larry Coon
University of California
.
- References:
- JTable sizing
- From: Larry Coon
- Re: JTable sizing
- From: Roedy Green
- Re: JTable sizing
- From: Larry Coon
- Re: JTable sizing
- From: Roedy Green
- Re: JTable sizing
- From: Larry Coon
- Re: JTable sizing
- From: Vova Reznik
- JTable sizing
- Prev by Date: Re: suggestions?
- Next by Date: Spezielle Windows Tasten abfragen
- Previous by thread: Re: JTable sizing
- Next by thread: Re: JTable sizing
- Index(es):
Relevant Pages
|