By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,738 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,738 IT Pros & Developers. It's quick & easy.

selecting a row in JTable

P: n/a
Does anyone know how I can use a MouseListener to select a specific row in a
JTable? Also, is there a way to have a hidden field or key for each row?

Thanks!

Gwerk.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Not sure I completely understand the first part of your question, but I
believe what you are looking for is
<JTable>.setRowSelctionAllowed(true);

As far as a hidden field, we use a column of width 0.

HTH,
John

"gwerk" <gw***@cogeco.ca> wrote in message news:<Bh****************@read1.cgocable.net>...
Does anyone know how I can use a MouseListener to select a specific row in a
JTable? Also, is there a way to have a hidden field or key for each row?

Thanks!

Gwerk.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.