wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes repaint the frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "repaint the frame" Watch "repaint the frame" New topic

repaint the frame

arona kosari

Joined: Oct 28, 2006
Posts: 19
I use frame and panel in my program,but when i run it,i must at first resize the frame too see it's panel.
I use repaint method too,but anything will change.
I'm wainting for your guidence.
Thanking you in anticipation.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
generally indicates you have setVisible(true) in the wrong spot


should be

arona kosari

Joined: Oct 28, 2006
Posts: 19
Thanks a lot.That was my problem.
I agree. Here's the link: http://aspose.com/file-tools
subject: repaint the frame
Similar Threads
repaint problem in JPanel
can i use 2 panel in 1 frame?
HFJ TwoButtons problems
repaint() will not always repaint()
Size of JScrollPane in a JPanel