Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2659 > unrolled thread
| Started by | "Irian" <irian@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:40 +0000 |
| Last post | 2011-04-27 15:40 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.java.gui
JTable - Windows Table Be "Irian" <irian@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: JTable - Windows Tabl "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: JTable - Windows Tabl "CK" <ck@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
| From | "Irian" <irian@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:40 +0000 |
| Subject | JTable - Windows Table Be |
| Message-ID | <1192599555.568492.215110@e9g2000prf.googlegroups.com> |
To: comp.lang.java.gui Hello everyone, is there a (simple) way to let a JTable behave like the Tables in many Windows applications? Primarily I want the following: If one column is resized by hand, only the following columns (all right neighbors) should moved (not all other columns resized). The size of the screen should only used for a "default" column width, but the user should be able to make the JTable wider than the application (resulting in a horizontal scrollbar). Flo --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:40 +0000 |
| Subject | Re: JTable - Windows Tabl |
| Message-ID | <newscache$qh62qj$0kf$1@news.ops.de> |
| In reply to | #2659 |
To: comp.lang.java.gui Irian wrote: > is there a (simple) way to let a JTable behave like the Tables in many > Windows applications? Primarily I want the following: If one column is > resized by hand, only the following columns (all right neighbors) > should moved (not all other columns resized). The size of the screen > should only used for a "default" column width, but the user should be > able to make the JTable wider than the application (resulting in a > horizontal scrollbar). JTable has a setAutoResize(int) method which can take several resize-modes. Just call that method with the resize-mode of your choice. See <http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html#setAutoResizeMode(int)> -- Thomas --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "CK" <ck@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:40 +0000 |
| Subject | Re: JTable - Windows Tabl |
| Message-ID | <iefch3pqc19ivaoksmunn38k4evts9v2p7@4ax.com> |
| In reply to | #2659 |
To: comp.lang.java.gui Words to the wise, Irian <iryan@gmx.de> wrote: >Hello everyone, > >is there a (simple) way to let a JTable behave like the Tables in many >Windows applications? Primarily I want the following: If one column is >resized by hand, only the following columns (all right neighbors) >should moved (not all other columns resized). The size of the screen >should only used for a "default" column width, but the user should be >able to make the JTable wider than the application (resulting in a >horizontal scrollbar). > >Flo From your description, it appears as if you are looking for a Java ListView control, is there a JListview component somewhere? -- Claus Dragon <clauskick@mpsahotmail.com> =(UDIC)= d++ e++ T-- K1!2!3!456!7!S a27 "Coffee is a mocker. So, I am going to mock." - Me, lately. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web