Page 5 of 5 FirstFirst ... 345
Results 81 to 83 of 83
Like Tree1Likes

Thread: Images and stuff

  1. #81
    Coold0wn is offline Member
    Join Date
    Aug 2011
    Rep Power


    i ... found the mistake..
    the frame is perfectly working, but it doesnt refresh itself.
    since i've set rezisable to false, there was no chance for the frame to refresh.
    when i rechanged that, and added another layer , nothing happened.
    but when i changed the size, it updated... and worked.... Oo
    that just costed me 2 days... well.. things you remember when you done them wrong once..

    still thanks a lot guys!
    do you know how i can refresh a frame?

    edit: setvisible - false => setvisible - true works..
    Last edited by Coold0wn; 08-13-2011 at 03:33 PM.

  2. #82
    kammce's Avatar
    kammce is offline Senior Member
    Join Date
    Dec 2010
    Rep Power


    Try using:
    first: JFrame.invalidate()
    And then call: JFrame.validate()

    That should invalidate you container then validate it. This might be an aggressive way of going about it... I believe there is another way. Still, If you have another question that is completely different from the one you started in this thread, create a new thread.

    Edit: also try the repaint() class. Look it up with "Threads."
    Last edited by kammce; 08-13-2011 at 06:03 PM.

  3. #83
    Coold0wn is offline Member
    Join Date
    Aug 2011
    Rep Power


    hm validate and invalidate doesnt work..
    but since it works with visible setting, ill just stick with that.
    it loads for some seconds, but thats okay.. i dont need a perfect editor :P

Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. where the stuff goes?
    By Izabela in forum New To Java
    Replies: 16
    Last Post: 08-31-2010, 02:00 PM
  2. Replies: 6
    Last Post: 05-26-2010, 12:17 AM
  3. Table, beginner stuff
    By drwk in forum New To Java
    Replies: 1
    Last Post: 01-24-2010, 08:19 PM
  4. Simple Stuff 0.1
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 07-19-2008, 04:27 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