From: Daniel Luis dos Santos on 15 Feb 2010 14:39 I just can't make the setPreferredWidth method of TableColumn work as I want to. Is there a way ? Also, is it possible to make the column not resizable even if the whole table is resized ?
From: Eric Sosman on 15 Feb 2010 18:26 On 2/15/2010 2:39 PM, Daniel Luis dos Santos wrote: > I just can't make the setPreferredWidth method of TableColumn work as I > want to. Is there a way ? Probably, unless what you want is something unreasonable. What do you want (and what have you tried)? Show us some code? > Also, is it possible to make the column not resizable even if the whole > table is resized ? I don't know. I'd ponder for a l-o-n-g time, though, before deciding that my own ideas about good-looking layout should override the wishes of the person actually looking at the screen. (Consider: The person at the screen may have vision problems, and may have expanded the fonts to some ENORMOUS size so he can read them more easily. Unfortunately, your fixed-width column is now too narrow to display one entire capital W ...) -- Eric Sosman esosman(a)ieee-dot-org.invalid
From: John B. Matthews on 15 Feb 2010 19:37 In article <4b79a2ed$0$2617$a729d347(a)news.telepac.pt>, Daniel Luis dos Santos <daniel.dlds(a)gmail.com> wrote: > I just can't make the setPreferredWidth method of TableColumn work as I > want to. Is there a way ? Have you tried this? <http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#width> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
|
Pages: 1 Prev: Simple BorderLayout problem Next: pre-increment vs. post-increment |