• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTable

 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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: https://coderanch.com/t/186605/java-developer-SCJD/certification/JTable-Freezes-Help
Again, I'm sorry to duplicate this post, but I need help. Thanks!
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic