🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTable, Srolling in applets, custom cell rederer, changing colors of some table rows

#12940
From: Andreas Meyer
Date: Fri, 23 Oct 1998 00:00
39 lines
1745 bytes
Hi,

i have a some of questions about JTable:

-- i want to have a column header with multiline text (two lines). What
do i have to accomplish
   in order to write & assign a custom cell renderer to the column
header ?

-- is it possible that some rows in JTable have a different color than
the rest ?

-- is it possible to fix some columns (i.e the first four) during
scrolling ?


   MOST IMPORTANT !
-- because am mainly focused on applet writing its is very important for
me to
   know, how to implement a propper repainting of a JTable. I have
hooked on the
   addTableModelListener call in order to get the instance of JTable for
sending
   a repaint from my model class. This does work in general, but my
column headers
   don't repaint. If i call the super.addTableModelListener from my hook
the behaviour
   is the same like before -- The whole Applet doesn't repaint properly.

i would appreciate code examples or code snippets very much because i am
new to swing/jfc
and it's very hard to find good literature about the JTable stuff.


Thanks in advance
Andreas Meyer

Hackenberg & Partner, A Renaissance Worldwide Company
EMail: am@hackenberg.de
Technical Details
Message-ID: <3630C022.3F2DC411@hackenberg.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,121728c027f038c9,start
X-Google-Attributes: gid111d45,public
From: Andreas Meyer <am@hackenberg.de>
Subject: JTable, Srolling in applets, custom cell rederer, changing colors of some table rows
Date: 1998/10/23
Message-ID: <3630C022.3F2DC411@hackenberg.de>
X-Deja-AN: 404357033
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing