Article View: aus.computers.java
Article #92Re: Help to solve flickering Checkbox in JTable
From: Ben Munday
Date: Thu, 15 Jan 2004 06:03
Date: Thu, 15 Jan 2004 06:03
37 lines
2337 bytes
2337 bytes
I commented out the section you suggested, but the flicker was still
there. what i have in that method now is:
public Component getTableCellRendererComponent(JTable table, Object
cBox, boolean isSelected, boolean hasFocus, int row, int column)
{
Checkbox newCheckbox = (Checkbox)cBox;
return newCheckbox;
}
ak wrote:
> the column that holds the Checkbox continually updates the
>
>>fields. I cannot select the Checkbox and i can only just see that the
>>correct info for the Checkbox is in the cell.
>
>
>> public Component getTableCellRendererComponent(JTable table, Object
>>cBox, boolean isSelected, boolean hasFocus, int row, int column)
>> {
>> Checkbox newCheckbox = (Checkbox)cBox;
>> newCheckbox.setState(false);
>> return newCheckbox;
>> }
>
>
> lol, its because you call setState(false) from
> getTableCellRendererComponent();
>
> throw newCheckbox.setState(false); away then everything work.
> --
>
> ____________
>
> http://reader.imagero.com the best java image reader.
>
>
Technical Details
Message-ID:
<40062d42$1@duster.adelaide.on.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mel.connect.com.au!news.ade.connect.com.au!duster.adelaide.on.net!not-for-mailReferences:
<400613be$1@duster.adelaide.on.net> <bu56bk$agr$1@online.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,93a0ed3014c56a0 X-Google-Attributes: gid10d6db,public X-Google-Thread: 113ae9,93a0ed3014c56a0 X-Google-Attributes: gid113ae9,public X-Google-Thread: 10fd6d,93a0ed3014c56a0 X-Google-Attributes: gid10fd6d,public X-Google-ArrivalTime: 2004-01-14 22:03:48 PST Date: Thu, 15 Jan 2004 17:03:47 +1100 From: Ben Munday <benny111@hotmail.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: aus.computers.java,comp.lang.java.help,comp.lang.java.gui Subject: Re: Help to solve flickering Checkbox in JTable References: <400613be$1@duster.adelaide.on.net> <bu56bk$agr$1@online.de> In-Reply-To: <bu56bk$agr$1@online.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: ppp126-160.lns1.syd3.internode.on.net Message-ID: <40062d42$1@duster.adelaide.on.net> X-Trace: duster.adelaide.on.net 1074146626 ppp126-160.lns1.syd3.internode.on.net (15 Jan 2004 16:33:46 +1050) Lines: 38 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mel.connect.com.au!news.ade.connect.com.au!duster.adelaide.on.net!not-for-mail