• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

my JButtons are not visible.

 
Edu Cobi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
The first time the JFrame comes to live everything is in its place but if I go to another window and then back to my JFrame window the buttons have disappear. They are there and I can select them(though they are invisible) and they work.
Any clue?
Thanks.
 
Jason Steele
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is difficult to say...Could you post some code?
It could also be a hardware issue. Is your pc lacking umphh?
 
Edu Cobi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
I have solved the problem by solving the constant repaint issue I posted in a different thread.
Thanks.
 
David Crossett
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just make sure you call super.paint(g) in your paint() method...that'll fix it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic