Results 1 to 3 of 3
  1. #1
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default JFrame invisible refuse to paint windows content tho everything else runs?

    Wtf just happend?
    I got tons of code I can NOT publish an example here. No possible way.
    I only need to know, what are the common reasons that JFrames fucks up when painting it's contents?

    It isnt hoged up as I can minimize and maximize, but it simply doesnt repaint anymore. Tho the repaint method is called over a 30 times per second.

    It works when I add the jpanel with the game graphics in the begging.
    If I remove the menu then add the game graphics panel, then it doesnt work.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Can't help without seeing code, but can't help if you have tons of code. You have your work cut out for you: Cut out code a bit at a time til the error goes away and that might be your offending code. Use a debugger or println statements to watch the state of your program as it rungs.

  3. #3
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default

    So I did as Iv done before, Replace it using a JCardLayout JPanel. Sucks that I will never figure out whats causing this..

Similar Threads

  1. JFrame cannot paint?
    By pandaman0212 in forum AWT / Swing
    Replies: 7
    Last Post: 05-04-2013, 08:19 AM
  2. JFrame expanding to fit content
    By pcman312 in forum AWT / Swing
    Replies: 1
    Last Post: 12-31-2010, 08:09 PM
  3. Changing content pane of a JFrame?
    By dunafrothint in forum AWT / Swing
    Replies: 1
    Last Post: 03-11-2010, 11:21 PM
  4. vm runs through jdialog directly to jframe
    By j2me64 in forum AWT / Swing
    Replies: 5
    Last Post: 01-31-2010, 11:27 PM
  5. Printing JFrame + it`s content
    By scana in forum AWT / Swing
    Replies: 1
    Last Post: 01-24-2010, 11:55 PM

Posting Permissions

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