JTable: Row and Cell Selection

Joined
Apr 4, 2017
Messages
1
Reaction score
0
Hi everyone.

Currently, I am new to the Java Swing and Jtable. I'm hoping anyone could help me. I'm trying to work on a functionality such as:

Table with 4 column { a, b, c, d} with 4 rows.
- I should able to select a cell in column b, however, if I select any cell in column a, c or d, the whole row of the selected cell will be select.

The behavior I'm trying to do is if I select cell { row 1, column b} - cell is selected, then select {row 3, column a} the whole row 3 is highlighted. Where the cell is selected in column b row 1 as well as the whole row 3.

Is there anyone have any information to work on this behavior in jtable?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top