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
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing