🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #352

setValueAt method in the multipleline JTable.

#352
From: saehoon.cheon
Date: Wed, 31 Aug 2005 18:09
26 lines
1888 bytes
Hi,
I created the table model having multiple line.

The code is one of the panels which is inserted in the Table.
To show two line in a cell, I used the "GridLayout(2,1)".

===================================================================

public SizeCheckBoxPanel() {
     super(new GridLayout(2, 1));
     setOpaque(true);
     theTextField = new JTextField();
     theCheckBox = new JCheckBox("Random");

     add(theTextField);
     theCheckBox.setFocusPainted(false);
     add(theCheckBox);
  }
====================================================================

Now I'd like to use "SetValueAt(Object obj, int row, int column)"
method.
I use two lines in one cell. In this case, how can I set up the row and
column index ?

Thank you in advance.
Technical Details
Message-ID: <1125511746.859799.34350@g44g2000cwa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,a6c5409e82b8954c,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail
From: saehoon.cheon@gmail.com
Newsgroups: borland.public.jbuilder.java.swing
Subject: setValueAt method in the multipleline JTable.
Date: 31 Aug 2005 11:09:06 -0700
Organization: http://groups.google.com
Lines: 27
Message-ID: <1125511746.859799.34350@g44g2000cwa.googlegroups.com>
NNTP-Posting-Host: 128.196.126.32
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1125511751 5570 127.0.0.1 (31 Aug 2005 18:09:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 31 Aug 2005 18:09:11 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: g44g2000cwa.googlegroups.com; posting-host=128.196.126.32;
   posting-account=VqB4GA0AAACuE6az_qQRxIpcXuKPiV4o