w*l 发帖数: 43 | 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. | g*****g 发帖数: 34805 | 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 !
| w*l 发帖数: 43 | 3 Thanks a lot, and I solved it.
y-axis,
by
【在 g*****g 的大作中提到】 : 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
|
|