Results 1 to 2 of 2
  1. #1
    ellondu is offline Member
    Join Date
    May 2013
    Rep Power

    Default Is it possible to add a thread for just a JPanel?

    I basically have a Panel that I need to repaint a bunch of times inside of a method. However, the panel freezes (becomes unresponsive) for the duration of that method. I need a way to separate the GUI from that method so that I can repaint the GUI during that method without interference.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Is it possible to add a thread for just a JPanel?

    Lesson: Concurrency in Swing (The Java™ Tutorials > Creating a GUI With JFC/Swing)

    And since this issue is more specific to Swing than to Threads and Synchronization, I shall move this thread.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 02-17-2013, 10:21 PM
  2. Change JPanel text of Parent JPanel from JDialog
    By bikashlama in forum AWT / Swing
    Replies: 7
    Last Post: 12-09-2011, 04:47 AM
  3. Replies: 9
    Last Post: 09-07-2011, 12:24 AM
  4. Retrieving mouse location inside a thread relative to an external JPanel.
    By Zambash in forum Threads and Synchronization
    Replies: 7
    Last Post: 08-25-2011, 05:33 PM
  5. Replies: 3
    Last Post: 04-21-2009, 12:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts