File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A drawing question (popup menu & hot spot & extension line)
 
Similar Threads
How to get the value from action to the javascript.
Is there anyway of overriding the default signal for PopupMenus
PopupMenu in Menu?
Generics: Shape example does not work as SUN says
swing editing JTree nodes