Article View: borland.public.jbuilder.java.language
Article #7235disabling cell editing
From: CLG
Date: Wed, 04 Jul 2001 14:11
Date: Wed, 04 Jul 2001 14:11
55 lines
2487 bytes
2487 bytes
I disable cell editing by overriding this method in my tablemodel
public boolean isCellEditable(int row, int col)
{
return false;
}
--
Peace,
Carl L. Gilbert
http://www.rigidsoftware.com
ICQ 614395-currently stolen working to retrieve.
"Then said I, Wisdom [is] better than strength: nevertheless the poor man's
wisdom [is] despised, and his words are not heard." Ecclesiastes 9:16
<swett@starband.com> wrote in message news:3b430341_1@dnews...
> I am disabling editing by using the following:
>
> ScheduleTable.setEnabled(false);
>
> If there is a better way to make it so users can't edit cell contents, but
> to still make a row selection highlighted, I'd be very interested in
knowing
> how.
>
> Thanks.
>
> "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
> news:MPG.15ac0d55241a141898a325@forums.borland.com...
> > On Tue, 3 Jul 2001 16:13:18 -0400, swett@starband.com wrote:
> >
> > > My table is set to disallow editing because the application is
> > > a "lookup only" application. I don't want users typing any
> > > replacement values into any cells. When editing is disabled,
> > > though, nothing gets automatically colored as the user clicks
> > > a cell. So I'm trying to color a row when a user clicks it.
> >
> > How do you disable editing? Row selection should work by default?
> >
> > --
> > Regards,
> >
> > John McGrath [TeamB]
> >
> > ---------------------------------------------------
> > Before sending me e-mail, please read:
> > http://www.JPMcGrath.net/newsgroups/e-mail.html
>
>
Technical Details
Message-ID:
<3b432531$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b4227b7_1@dnews> <MPG.15ac0d55241a141898a325@forums.borland.com> <3b430341_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9df0a17266721318 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-04 07:17:20 PST From: "CLG" <lamont_gilbert @ rigidsoftware.com> Newsgroups: borland.public.jbuilder.java.language References: <3b4227b7_1@dnews> <MPG.15ac0d55241a141898a325@forums.borland.com> <3b430341_1@dnews> Subject: disabling cell editing Date: Wed, 4 Jul 2001 10:11:42 -0400 Lines: 57 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 24.181.226.14 Message-ID: <3b432531$1_1@dnews> X-Trace: dnews 994256177 24.181.226.14 (4 Jul 2001 07:16:17 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews