🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable´s Column Header

#12414
From: Zafir Anjum
Date: Sun, 10 Jan 1999 00:00
27 lines
1228 bytes

table.getColumnModel().getColumn(0).setHeaderValue( "New Label" );
table.getTableHeader().repaint();


andreas ahrens <aahrens@online-club.de> wrote:
>Hello,>
>maybe anyone can give me a hint on the following:
>
>I want to change the text of the column headers of a JTable
>at runtime (multi-lingual app) but I have so far only
>achieved this by creating a new TableModel.
>
>How can I change the header text without destroying the
>current model ?
>
>
>Thanks in advance
>
>andreas ahrens




-----------------** -- Posted from CodeGuru -- **-----------------
http://www.codeguru.com/java     The website for Java programmers.
Technical Details
Message-ID: <369940ac.0@209.66.99.126>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3677B9BA.19B9D8D7@online-club.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8f24f05f2ad3dd14
X-Google-Attributes: gid111d45,public
From: "Zafir Anjum" <zafir@codeguru.com>
Subject: Re: JTable´s Column Header
Date: 1999/01/10
Message-ID: <369940ac.0@209.66.99.126>
X-Deja-AN: 431050802
Sender: "Zafir Anjum" <zafir@codeguru.com>
References: <3677B9BA.19B9D8D7@online-club.de>
Organization: Another Netscape Collabra Server User
Reply-To: "Zafir Anjum" <zafir@codeguru.com>
X-User-Info: 24.4.254.97     
Newsgroups: borland.public.jbuilder.java.swing