• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to repaint a JComponent?  RSS feed

 
Jenkin Zheng
Greenhorn
Posts: 12
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello , every JAVA lovers. I am a newer.How to repaint AlphaCompositeShow ,when I slide?Here is a part of source.

 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to repaint AlphaCompositeShow ,when I slide?

The problem here is that the AlphaCompositeShow added to the frame isn't the same as the one being repainted. Change this line:
 
Jenkin Zheng
Greenhorn
Posts: 12
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:
How to repaint AlphaCompositeShow ,when I slide?

The problem here is that the AlphaCompositeShow added to the frame isn't the same as the one being repainted. Change this line:

Thanks ,thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!