0

I have a JTable, and I want to do the following tasks:

  1. Select a cell
  2. Select a block of cells
  3. Select distinct cells
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
SnaCkeR
  • 1
  • 1

1 Answers1

2

As shown in How to Use Tables: User Selections, JTable supports multiple selections among rows , but not among individual cells. You may be able to achieve the desired effect using JList using MULTIPLE_INTERVAL_SELECTION and HORIZONTAL_WRAP, as shown here and here.

image

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045