wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes A drawing question (popup menu & hot spot & extension line) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "A drawing question (popup menu & hot spot & extension line)" Watch "A drawing question (popup menu & hot spot & extension line)" New topic
Author

A drawing question (popup menu & hot spot & extension line)

Yang Li
Greenhorn

Joined: Jan 31, 2007
Posts: 5
Hi folks,

I really need some advice on how to implement features below:

A user clicks an icon (I will provide it), then clicks again in a drawing area, a shape represented by the icon will be there. If a user (right) clicks on the shape, a popup menu will come out with several options, like Add a solid line, convert it, etc. If a user selects "add a solid line", a solid line will be extened from the shape, with an active hot spot at the end. If clicking the hot spot, a user will get the same popup menu again. Users can drag the line to scale it.

If the user selects "convert it", the shape will become another equivalent shape.

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: A drawing question (popup menu & hot spot & extension line)