🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Set Image to TableHeader ???

#9330
From: Ernesto Bascon Pantoja
Date: Fri, 14 Apr 2000 00:00
46 lines
1622 bytes
Hi:



1. Excuse me, I had an errors at the implementation I sent. I wrote:
    switch (column) { ... }

   and it must be:

    switch (columnToBeSorted) { .... }

In that code, you must implement your sorting algorithms and you
must
have a control of the columnToBeSorted.
2. The header renderer must be set to every column:

TableCellRenderer tcr = new YourTableHeaderRenderer();
for (int i=0; i<getColumnCount(); i++)
  getColumnModel().getColumn(i).setHeaderRenderer(tcr); 


I hope it will be useful

Saludos

Ernesto Basc�n

---------------------

Rainer Drexler wrote:
> 
> Thanks for your Help,
> 
> but now in all rows of the selected column the image will shown.
> How have i to set the HeaderRenderer.
> Could you help me
> 
> Thanks Rainer (Germany)

-- 
------------------------------------------
      What you dream is what you are

Polimorf's Page:     http://166.114.106.63
------------------------------------------
Technical Details
Message-ID: <38F71DDA.68528420@ucbcba.edu.bo>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8chrs4$jpc1@bornews.borland.com> <38F38B50.B9293DBC@ucbcba.edu.bo> <8d6p3h$17b12@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,5ec6b97b8654eea1
X-Google-Attributes: gid111d45,public
From: Ernesto Bascon Pantoja <bascone@ucbcba.edu.bo>
Subject: Re: Set Image to TableHeader ???
Date: 2000/04/14
Message-ID: <38F71DDA.68528420@ucbcba.edu.bo>
X-Deja-AN: 611111013
Content-Transfer-Encoding: 8bit
References: <8chrs4$jpc1@bornews.borland.com> <38F38B50.B9293DBC@ucbcba.edu.bo> <8d6p3h$17b12@bornews.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
Organization: UCB
Mime-Version: 1.0
Reply-To: bascone@ucbcba.edu.bo
Newsgroups: borland.public.jbuilder.java.swing