Results 81 to 83 of 83
Thread: Images and stuff
- 08-13-2011, 03:28 PM #81
Member
- Join Date
- Aug 2011
- Posts
- 71
- Rep Power
- 0
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.
- 08-13-2011, 05:43 PM #82
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.
- 08-13-2011, 05:49 PM #83
Member
- Join Date
- Aug 2011
- Posts
- 71
- Rep Power
- 0
Similar Threads
-
where the stuff goes?
By Izabela in forum New To JavaReplies: 16Last Post: 08-31-2010, 02:00 PM -
JDK, SDK, JDT, JRE, what is all stuff? why do i need it?
By sonny in forum New To JavaReplies: 6Last Post: 05-26-2010, 12:17 AM -
Table, beginner stuff
By drwk in forum New To JavaReplies: 1Last Post: 01-24-2010, 07:19 PM -
Simple Stuff 0.1
By Java Tip in forum Java SoftwareReplies: 0Last Post: 07-19-2008, 04:27 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks