File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Problem with Applet table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Problem with Applet table" Watch "Problem with Applet table" New topic
Author

Problem with Applet table

Pradeep Selvaraj
Greenhorn

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.
Cheers,
Pradeep.
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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

Joined: Oct 29, 2001
Posts: 8264

try <jtable>.getSelectionModel().setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)
or
<jtable>.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Pradeep Selvaraj
Greenhorn

Joined: Sep 29, 2003
Posts: 17
Hi Joe,
Thanks a lot! The examples were really gr8.Thanks again for ur time.
Cheers,
Pradeep
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem with Applet table
 
Similar Threads
Correct sintax to order dependent objects
How to select a range of rows
working with tables
how to move data to other table
getTableName(int) with DB2 is not working right