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


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

How to automatically size

Started byjsrober@hotmail.com.remove-dii-this
First post2011-04-27 15:38 +0000
Last post2011-04-27 15:38 +0000
Articles 4 — 3 participants

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


Contents

  How to automatically size jsrober@hotmail.com.remove-dii-this - 2011-04-27 15:38 +0000
    Re: How to automatically a24900@googlemail.com.remove-dii-this - 2011-04-27 15:38 +0000
      Re: How to automatically jsrober@hotmail.com.remove-dii-this - 2011-04-27 15:38 +0000
        Re: How to automatically "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000

#2342 — How to automatically size

Fromjsrober@hotmail.com.remove-dii-this
Date2011-04-27 15:38 +0000
SubjectHow to automatically size
Message-ID<1188482183.128470.30020@o80g2000hse.googlegroups.com>
  To: comp.lang.java.gui
Hi,

I have a JTable with many columns. The data in some columns is narrow
and in other columns is wide. The width of the data will depend on
user selections in the application.

I want the JTable to automatically set the width of the columns based
on the width of the data in the columns. This is simple to do in
C#/.NET by setting the column width to -1 or -2 (if you want the auto
width based on the data or the column header).

How do I do this with the JTable?

THANK YOU!
John

---
 * 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]


#2343 — Re: How to automatically

Froma24900@googlemail.com.remove-dii-this
Date2011-04-27 15:38 +0000
SubjectRe: How to automatically
Message-ID<1188507488.730205.217630@i13g2000prf.googlegroups.com>
In reply to#2342
  To: comp.lang.java.gui
On Aug 30, 3:56 pm, "jsro...@hotmail.com" <Intelli...@gmail.com>
wrote:
> I want the JTable to automatically set the width of the columns based
> on the width of the data in the columns.

http://forum.java.sun.com/thread.jspa?forumID=54&messageID=2532529&threadID=527301

---
 * 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]


#2401 — Re: How to automatically

Fromjsrober@hotmail.com.remove-dii-this
Date2011-04-27 15:38 +0000
SubjectRe: How to automatically
Message-ID<1189353015.137301.51430@w3g2000hsg.googlegroups.com>
In reply to#2343
  To: comp.lang.java.gui
On Aug 30, 4:58 pm, "a24...@googlemail.com" <a24...@googlemail.com>
wrote:
> On Aug 30, 3:56 pm, "jsro...@hotmail.com" <Intelli...@gmail.com>
> wrote:
>
> > I want theJTableto automatically set the width of the columns based
> > on the width of the data in the columns.
>
> http://forum.java.sun.com/thread.jspa?forumID=54&messageID=2532529&th...

Thank you. That worked perfectly!

John

---
 * 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]


#2402 — Re: How to automatically

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:38 +0000
SubjectRe: How to automatically
Message-ID<1ml9e316tet7v8mlkn0e0peaiop8cgnamc@4ax.com>
In reply to#2401
  To: comp.lang.java.gui
On Sun, 09 Sep 2007 15:50:15 -0000, "jsrober@hotmail.com"
<IntelliSig@gmail.com> wrote, quoted or indirectly quoted someone who
said :

>> http://forum.java.sun.com/thread.jspa?forumID=54&messageID=2532529&th...

seems funny that is not built in.
-- 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * 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