Re: JTable sizing



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
.



Relevant Pages

  • Re: 58" Wide Upholstery Fabric??
    ... I have an oversized arched window that is just ... wider than 54" other than going through every single bolt ... From what I infer in your post you are thinking in terms of a window with only one panel. ... If that is what you are doing you are going to have panels 29 inches wide, take off 2 inches for side hems leaves you with a panel that's 27 inches wide or 54inches for the pair. ...
    (alt.sewing)
  • Re: noob - starting with the overall container layout - fluid columns but with min/max width
    ... Add its padding, borders and margins, and it's a ... little bit wider. ... no matter what the window width was. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Light bulbs.
    ... Tim McDaniel wrote: ... can be avoided if you make your window a little wider. ... isn't Keith on a dumb terminal? ...
    (rec.arts.sf.fandom)
  • Re: Application window wider than screen resolution?
    ... I want to make the window much wider than the width of the screen (even ... > Right click the document's button in the taskbar and select Restore. ... try a right click on the taskbar and choose Cascade ...
    (microsoft.public.windowsxp.basics)
  • Re: PAN exceeds the horizontal desktop size of 800 pixels.
    ... > I start the PAN newsreader, and it opens up in a window that is wider than ... > If I try a maximize, the window is still wider than the desktop width. ... is still one of the most popular video modes particularly with laptop ... that won't display properly unless they get at 1280x1024 ...
    (comp.os.linux)