Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: JFrame Freezes

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    My Mood
    Fine
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question JFrame Freezes

    Every time I left click and hold on my JFrame window, for some reason it just freezes until you let go of the button, I found out that the variables changed using event listeners will freeze, my guess is because of the mouseDragged method. Take a look at the example and see for your self, download is listed below.

    Example: FreezeTest.zip *When it says this is not commonly downloaded, that does not mean it's a virus!*


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,584
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: JFrame Freezes

    Can you make a small complete program that compiles, executes and shows the problem?

    I've never noticed that behavior, probably because I've never pressed and held the mouse.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    My Mood
    Fine
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JFrame Freezes

    Sure I can, give me a lil bit...
    I don't do java for love, I do it for a passion!

  4. #4
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    My Mood
    Fine
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JFrame Freezes

    *Updated Post*
    I don't do java for love, I do it for a passion!

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,584
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: JFrame Freezes

    Please post the code here on the forum.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. problem with my JFrame; JFrame not closing and stay in background
    By golominator in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 6th, 2012, 07:20 AM
  2. using objects from one jFrame on a different jFrame
    By Taskeen in forum AWT / Java Swing
    Replies: 3
    Last Post: September 14th, 2011, 08:51 AM
  3. connecting jframe to another jframe
    By ajtambalo in forum Member Introductions
    Replies: 2
    Last Post: May 11th, 2011, 11:24 AM
  4. BufferedReader - Freezes on 2nd read
    By mds1256 in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: March 14th, 2011, 03:26 PM
  5. JSP freezes after AJAX call !!
    By java_freek in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: April 16th, 2010, 10:31 AM

Tags for this Thread