Article View: aus.computers.java
Article #91Re: Help to solve flickering Checkbox in JTable
From: ak
Date: Thu, 15 Jan 2004 04:53
Date: Thu, 15 Jan 2004 04:53
21 lines
1973 bytes
1973 bytes
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:
<bu56bk$agr$1@online.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news2.telebyte.nl!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mailReferences:
<400613be$1@duster.adelaide.on.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10fd6d,93a0ed3014c56a0 X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10d6db,93a0ed3014c56a0 X-Google-Attributes: gid10d6db,public X-Google-Thread: 113ae9,93a0ed3014c56a0 X-Google-Attributes: gid113ae9,public X-Google-ArrivalTime: 2004-01-14 20:53:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news2.telebyte.nl!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: "ak" <spam@imagero.com> Newsgroups: aus.computers.java,comp.lang.java.help,comp.lang.java.gui Subject: Re: Help to solve flickering Checkbox in JTable Date: Thu, 15 Jan 2004 05:53:09 +0100 Organization: 1&1 Internet AG Lines: 23 Message-ID: <bu56bk$agr$1@online.de> References: <400613be$1@duster.adelaide.on.net> NNTP-Posting-Host: pd9e7c2ed.dip0.t-ipconnect.de X-Trace: online.de 1074142388 10779 217.231.194.237 (15 Jan 2004 04:53:08 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Thu, 15 Jan 2004 04:53:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106