Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add in button and paint in applet?

 
Edward Sie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i having problem of adding the button and paint graphic together.. should it using paint Component?




 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
should it using paintComponent?

Yes. See Lesson: Performing Custom Painting and Painting in AWT and Swing.
 
Edward Sie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeap~ but i cnt manage to add in paintcomponent.. actually i dono how to use paint component~ i hope can be teach =)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic