Can u help me?
i’m looking from a LineObject JavaBean that can reply mouseEvent.
that means: if u click ur mouse on the lineObject, it can do sth. to reply ur click just like a JButton does.
many thanks!!!
Can u help me?
i’m looking from a LineObject JavaBean that can reply mouseEvent.
that means: if u click ur mouse on the lineObject, it can do sth. to reply ur click just like a JButton does.
many thanks!!!
Why? What are you trying to accomplisH?
It seems to me that any great number of these mouse-aware lines are goign to result in a huge number of glue obejcts for callbacks.
I suspect there is a mroe efficient/elgent way to do what you are
trying to do. Tell us about your goals and we’ll try to help.
i just wanna get a LINE that can be selected on the JPanel & can fire someEvent when it’s clicked or selected.
i wanna make a workflow designer with java.awt & java.swing, the Relations between Actives are showed as a line.
And the Relations have their own attributes, so i wanna use another panel to show the Relations attributes, this panel must show the attributes of the Line who has been selected. So the line’s being selected event must be fired and the mouse click on the line event must be listened by the line.
that’s all, Can U help me? Thanks a lot!!!
now, i can realize that by constructing my Line implements JComponents class. but it really doesn’t work well.
i draw group of ovals to display the line’s width, it’s so slow and i really don’t have any other solution which is faster. and it’s MouseEvent feed back makes me nervous more.
anybody have a solution?
give me a hand, please! thanks!