It's not a secret anymore!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "JTable" Watch "JTable" New topic
Author

JTable

Daniel Simpson
Ranch Hand

Joined: Sep 02, 2004
Posts: 181
I want to apologize for this duplicate post but I have tried everything without success to get my JTable to work right. Has anyone else experienced difficulty with their JTable freezing? If you have time, here was my thread on it: http://www.coderanch.com/t/186605/java-developer-SCJD/certification/JTable-Freezes-Help
Again, I'm sorry to duplicate this post, but I need help. Thanks!


SCJP 1.4<br />SCJD 1.4
Dieskun Koper
Ranch Hand

Joined: Aug 15, 2004
Posts: 85
Hi Daniel,

I feel I don't have enough information to solve your problem. I'd probably have to see much more of your code or even run your program on my machine to figure it out.
But this is your assignment. Please try to figure out yourself where it is deadlocking (which line). Browse the web if you do not know how to debug your application.
I suppose adding a logger is one option, debug your application (step through it with your IDE), press Ctrl-Break (Windows) in the command prompt to see what your threads are waiting for.

Good luck,
Dies
Daniel Simpson
Ranch Hand

Joined: Sep 02, 2004
Posts: 181
Thank you so much for that Ctrl-Break tidbit. Here's what I got. I believe it has something to do with my lock-unlock code. Here's the quite lengthy output in the command prompt:

Daniel Simpson
Ranch Hand

Joined: Sep 02, 2004
Posts: 181
Yes! Dieskun, I want to thank you for your help with that keyboard shortcut. It helped me figure it out! I placed my lock line in the wrong place and it was causing it to hang! Thank you so much! Problem solved. Now I can sleep!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable
 
Similar Threads
Question about JTable
NX: DuplicateKeyException
Record Number in JTable
Search Capabilities
NX: Appealing to Sun - help please????