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


Groups > comp.lang.java.programmer > #14412

Re: JTable size

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: JTable size
Date 2012-05-08 07:51 -0700
Organization Canadian Mind Products
Message-ID <pkciq7563poc29h9kmtpmq69e4bnnsdhkc@4ax.com> (permalink)
References <1336376488.66@user.newsoffice.de>

Show all headers | View raw


On Mon, 07 May 2012 09:41:28 +0200, Hakan <H.L@softhome.net> wrote,
quoted or indirectly quoted someone who said :

> What do I need to add to control the size of a JTable? Nothing happens 
>when I run the code quoted below, it stays the same size.

You put the JTable in a JScroller and control the size of the
JScroller with your layout. Logically the size of the JTable is the
size of all the data in it.

see http://mindprod.com/products1.html#VERCHECK
for sample code.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
Programmers love to create simplified replacements for HTML. 
They forget that the simplest language is the one you 
already know. They also forget that their simple little 
markup language will bit by bit become even more convoluted 
and complicated than HTML because of the unplanned way it grows.
.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

JTable size Hakan <H.L@softhome.net> - 2012-05-07 09:41 +0200
  Re: JTable size "John B. Matthews" <nospam@nospam.invalid> - 2012-05-08 00:13 -0400
  Re: JTable size Roedy Green <see_website@mindprod.com.invalid> - 2012-05-08 07:51 -0700

csiph-web