wood burning stoves 2.0*
The moose likes Applets and the fly likes How to add in button and paint in applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to add in button and paint in applet?" Watch "How to add in button and paint in applet?" New topic
Author

How to add in button and paint in applet?

Edward Sie
Greenhorn

Joined: Mar 08, 2011
Posts: 5
i having problem of adding the button and paint graphic together.. should it using paint Component?




Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41591
    
  55
should it using paintComponent?

Yes. See Lesson: Performing Custom Painting and Painting in AWT and Swing.


Ping & DNS - my free Android networking tools app
Edward Sie
Greenhorn

Joined: Mar 08, 2011
Posts: 5
yeap~ but i cnt manage to add in paintcomponent.. actually i dono how to use paint component~ i hope can be teach =)
 
 
subject: How to add in button and paint in applet?