由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How higlight a point by clicking a radio
相关主题
eclipse how to remember a code location and jump back?Anybody can recommend a framework article for building swin
Re: component之间怎样送消息?一个基本问题。
Re: Can create a Interface object, why?an easy question
Re: print problem, GUI guru please come in请教一个有关 inner class 的问题
农民运动讲习所1. Thread and paint()请问这是什么语法
Swing help我这个简单例子,怎么在actionListener里面拿到contentPane的instance?
swing questionjava compilation question
add a mouse-click function on an applethelp on this scope question
相关话题的讨论汇总
话题: 256话题: radio话题: higlight话题: axis话题: clicking
进入Java版参与讨论
1 (共1页)
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

1 (共1页)
进入Java版参与讨论
相关主题
help on this scope question农民运动讲习所1. Thread and paint()
Help with Tomcat for Eclipse v1.03Swing help
ant javac error in eclipse 3.0?swing question
Problem on ANT,JAVA,JSP,JSPPrecompileradd a mouse-click function on an applet
eclipse how to remember a code location and jump back?Anybody can recommend a framework article for building swin
Re: component之间怎样送消息?一个基本问题。
Re: Can create a Interface object, why?an easy question
Re: print problem, GUI guru please come in请教一个有关 inner class 的问题
相关话题的讨论汇总
话题: 256话题: radio话题: higlight话题: axis话题: clicking