Hi,
how (if at all) can I make multiple JScrollPanes have different views on 1 common component (a JTable in this case). Every time I set the viewport of a scrollpane, the previous scrollpane's view disappears...
Cheers, Max
Hi,
how (if at all) can I make multiple JScrollPanes have different views on 1 common component (a JTable in this case). Every time I set the viewport of a scrollpane, the previous scrollpane's view disappears...
Cheers, Max
A Component
can have only 1 parent. You can't put the same JTable
in two JScrollPanes
. You can, however, create two JTable
s backed by the same model, and put those two tables into their own scroll panes.