This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Problem with Applet table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with Applet table" Watch "Problem with Applet table" New topic

Problem with Applet table

Pradeep Selvaraj

Joined: Sep 29, 2003
Posts: 17
Hi there!
I created a JAVA Applet that has a TABLE which lists records from the SQL database. The problem is that i wanted to select multiple rows from the table but i cudnt. Is there any way to select multiple rows and insert into the SQL table.
Can i add check box in the Applet TABLE?
Thanks in advance.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

This questions would probably get better responses from people in the SWING / AWT / JFC Forum. So I will move it there.

GenRocket - Experts at Building Test Data
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

try <jtable>.getSelectionModel().setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)
As for adding a checkbox, that question must get asked three times a week in this forum. Do a search or check out this page

[How To Ask Questions On JavaRanch]
Pradeep Selvaraj

Joined: Sep 29, 2003
Posts: 17
Hi Joe,
Thanks a lot! The examples were really gr8.Thanks again for ur time.
I agree. Here's the link:
subject: Problem with Applet table
jQuery in Action, 3rd edition