Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Applet table

 
Pradeep Selvaraj
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This questions would probably get better responses from people in the SWING / AWT / JFC Forum. So I will move it there.
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep Selvaraj
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,
Thanks a lot! The examples were really gr8.Thanks again for ur time.
Cheers,
Pradeep
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic