aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Selection a row in the JTable per single mouse click and restriction of the selection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Selection a row in the JTable per single mouse click and restriction of the selection" Watch "Selection a row in the JTable per single mouse click and restriction of the selection" New topic
Author

Selection a row in the JTable per single mouse click and restriction of the selection

Olena Golub
Ranch Hand

Joined: Jan 17, 2005
Posts: 113
Hello Java-Gurus!
I have some questions about JTable.
How can I implement in the JTable that I can select only maximum three rows in the Table?
And the second question is:
How can I implement this?:
I select one row per single mouse click. Than I select the second row per single-mouse click (without Ctrl). The fist should be also selected.


I am very thankful for your help or ideas!
Olena
[ March 17, 2005: Message edited by: Olena Golub ]

SCJP 1.4<br />SCJD 1.4 (in progress)
Olena Golub
Ranch Hand

Joined: Jan 17, 2005
Posts: 113
I did it!
It works now



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selection a row in the JTable per single mouse click and restriction of the selection