File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes JTable selection problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JTable selection problem" Watch "JTable selection problem" New topic

JTable selection problem

Buckley Lee

Joined: Mar 28, 2001
Posts: 19
I've written a program that works fine with Java 1.1.8/1.2 but when run with Java 1.3.1 has a JTable selection problem. Here's the problem:
When the window with the JTable appears to the user, the user can select a row and open it. This works just fine in earlier versions of Java; the selected row opens and displays to the user in a new window. HOWEVER, with Java 1.3.1, when a user selects a row (same program compiled with the new version of Java) an error message is displayed saying that a row must be selected before it can be opened. But the row IS selected. Java even highlights the selected row, but keeps insisting that no row has been selected. This only occurs in Java 1.3.1 though. Any suggestions?? Any help is appreciated.
I agree. Here's the link:
subject: JTable selection problem
It's not a secret anymore!