Redian新闻
>
add a mouse-click function on an applet
avatar
add a mouse-click function on an applet# Java - 爪哇娇娃
e*r
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
avatar
g*g
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。