• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no paint() ???

 
Rick Gentry
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've created a new extension of the JComponent class and paint() isn't being called when it's run and repaint() doesn't do anything either. Any suggestions? I'll put in the code if someone feels like taking a look.

[ December 14, 2002: Message edited by: Rick Gentry ]
 
Marilyn de Queiroz
Sheriff
Posts: 9066
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I suggest you move your c.add( ... ) to before you call the frame.setVisible().
 
Rick Gentry
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but I already figured that one out by myself. It all works now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic