File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Similar Threads
JTable
Problem with printing a JTable
JTable + AbstractTableModel
JTable
JTable