Redian新闻
>
How higlight a point by clicking a radio
avatar
How higlight a point by clicking a radio# Java - 爪哇娇娃
w*l
1
Hi, sirs,
I am compiling a java swing program like this:
1. I can input an image from directory;
2. On this image, I can set 256 points for x-axis and 256 points for y-axis,
from (1,1), (1,2)...(256,256);
3. When I click a radio, a fixed point, say (5,6), should be highlighted by
red color;
Right now, steps 1, 2 have been finished. Can anyone tell me how to do the
step 3 ? Or can you give me some clues, such as some websites?
Appreciated !
Thanks.
avatar
g*g
2
Every time a radio button is clicked, an action event will be fired.
You can implement ActionListener to do the job. A tutorial is here
http://java.sun.com/docs/books/tutorial/uiswing/components/button.html

【在 w*l 的大作中提到】
: Hi, sirs,
: I am compiling a java swing program like this:
: 1. I can input an image from directory;
: 2. On this image, I can set 256 points for x-axis and 256 points for y-axis,
: from (1,1), (1,2)...(256,256);
: 3. When I click a radio, a fixed point, say (5,6), should be highlighted by
: red color;
: Right now, steps 1, 2 have been finished. Can anyone tell me how to do the
: step 3 ? Or can you give me some clues, such as some websites?
: Appreciated !

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