e******r 发帖数: 220 | 1 Implement an applet greeting card. The applet first displays some kind of
graphical depiction (not just an image that you import), then when a user
clicks on the applet it should repaint with the inside of the card displaying
a message in text.
I have done with the applet, but how to add that mouse-click function on it?
Who can give me some hints? Thanks | g*****g 发帖数: 34805 | 2 See ActionListener interface and actionPerform method,
for newbie, you are always suggested to find a sample code
to understand how it works. There should be plenty online.
【在 e******r 的大作中提到】 : Implement an applet greeting card. The applet first displays some kind of : graphical depiction (not just an image that you import), then when a user : clicks on the applet it should repaint with the inside of the card displaying : a message in text. : I have done with the applet, but how to add that mouse-click function on it? : Who can give me some hints? Thanks
|
|