Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2659 > unrolled thread

JTable - Windows Table Be

Started by"Irian" <irian@THRWHITE.remove-dii-this>
First post2011-04-27 15:40 +0000
Last post2011-04-27 15:40 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.java.gui


Contents

  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

#2659 — JTable - Windows Table Be

From"Irian" <irian@THRWHITE.remove-dii-this>
Date2011-04-27 15:40 +0000
SubjectJTable - 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]


#2661 — Re: JTable - Windows Tabl

From"Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this>
Date2011-04-27 15:40 +0000
SubjectRe: 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]


#2664 — Re: JTable - Windows Tabl

From"CK" <ck@THRWHITE.remove-dii-this>
Date2011-04-27 15:40 +0000
SubjectRe: 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