🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Focusproblem in a JTable

#9331
From: Ernesto Bascon Pantoja
Date: Fri, 14 Apr 2000 00:00
23 lines
1184 bytes
Hi:

The easiest way:

UIManager.put("Table.focusCellHighlightBorder",
BorderFactory.createLineBorder(tableView.getSelectionBackground()));

Saludos


Ernesto B.

Andreas Andersson wrote:
> 
> Hi,
> I'am having a problem when a cell is selected in my JTable there is some
> kind of selectedgrid around the cell which is yellow. In my table i just
> want to be able to choice rows and I'm not interest in which cell the user
> has selected only which row the user selected. Can I in some simple way
> remove the extra grid around the cell and just use default selectedcolor for
> the hole row.
> 
> // Andreas
Technical Details
Message-ID: <38F7211E.66B73CCC@ucbcba.edu.bo>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38f7019a@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c8f4190c448e4a98
X-Google-Attributes: gid111d45,public
From: Ernesto Bascon Pantoja <bascone@ucbcba.edu.bo>
Subject: Re: Focusproblem in a JTable
Date: 2000/04/14
Message-ID: <38F7211E.66B73CCC@ucbcba.edu.bo>
X-Deja-AN: 611116009
Content-Transfer-Encoding: 7bit
References: <38f7019a@dnews>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: UCB
Mime-Version: 1.0
Reply-To: bascone@ucbcba.edu.bo
Newsgroups: borland.public.jbuilder.java.swing