aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes booking seats Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "booking seats" Watch "booking seats" New topic
Author

booking seats

ravindra janapreddy
Ranch Hand

Joined: Jan 30, 2001
Posts: 84
When I run the modify method , I found that the # of seats is reduced twice.
I think it has to do with the public void valueChanged(ListSelectionEvent e) being called twice . How could I avoid the method being called twice?
I have tried to used the following code but still , It doesn't seem to work.
JTable table = new JTable(model);
table.setCellSelectionEnabled(false);
table.setRowSelectionAllowed(true);
table.setColumnSelectionAllowed(false);
Where could I be going wrong ?
Thanks
Ravi


SCEA, SCBCD, SCWCD, SCJD, SCJP
 
Don't get me started about those stupid light bulbs.
 
subject: booking seats