由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - add a mouse-click function on an applet
相关主题
请教一个有关 inner class 的问题愣是笨到家----整不明白applet的path
Re: print problem, GUI guru please come in为什么我这个html找不到applet class?
农民运动讲习所1. Thread and paint()Re: Client-Server and actionPerformed
an easy questionRe: Swing问题
Re: How to write to a file on server in an applet?关于actionPerformed()的问题
a question regarding appletJava如何实现自动消失的消息框?
赶快帮帮我!遇到Swing的一个问题
再问个java的蠢问题,别骂我Re: component之间怎样送消息?
相关话题的讨论汇总
话题: applet话题: mouse话题: click话题: add话题: function
进入Java版参与讨论
1 (共1页)
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

1 (共1页)
进入Java版参与讨论
相关主题
Re: component之间怎样送消息?Re: How to write to a file on server in an applet?
Re: Can create a Interface object, why?a question regarding applet
How higlight a point by clicking a radio赶快帮帮我!
Swing help再问个java的蠢问题,别骂我
请教一个有关 inner class 的问题愣是笨到家----整不明白applet的path
Re: print problem, GUI guru please come in为什么我这个html找不到applet class?
农民运动讲习所1. Thread and paint()Re: Client-Server and actionPerformed
an easy questionRe: Swing问题
相关话题的讨论汇总
话题: applet话题: mouse话题: click话题: add话题: function