hi!  thanks for all your replies.

yes, i am using 'setRowSelectionInterval(int, int)', but am still having
some problems.

when i run the code through "scrapbook" in visual age 3.5, it works just
fine (scrapbook is a feature in visual age which lets a developer run
snippets of code without creating a class).  but when i deploy my jar onto
the webserver and run it through a browser (it is an applet with a swing
front end and i use the JRE1.3_02 plugin with my browser), the highlighting
does not work.

could this be a jdk/jre issue?  i use ibm's jdk 1.2.2 (through visual age)
for compiling, and then use jre 1.3_02 at runtime.

any ideas?

thanks!


-----Original Message-----
From:  "Song, Mingjian" <[EMAIL PROTECTED]>
Date:  Thu Mar 29, 2001 11:26pm
Subject:  RE: [[EMAIL PROTECTED]] JTable row highlight

Did you try to use JTable
setRowSelectionInterval(int, int)
in the button's action handler?

Mingjian Song

> -----Original Message-----
> From: prakrity pralaya [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 5:21 PM
> To:   [EMAIL PROTECTED]
> Subject:      [[EMAIL PROTECTED]] JTable row highlight
>
> hi!
>
> i am trying to highlight a row of a JTable without a mouse-click to that
> row, but through an event generated by another component.  for instance, i
> have a button by the JTable that says "Highlight Row 3."  when i click
> this
> button, it should have the same functionality as a user clicking on row 3
> on
> the JTable and row 3 getting highlighted.
>
> i have started looking at the TableCellRenderer but am still completely
> lost.  any help would be appreciated.
>
> thanks!


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to