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 p开发者_开发百科revious 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 JTables backed by the same model, and put those two tables into their own scroll panes.
加载中,请稍侯......
精彩评论