Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: booking seats