This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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
Is there anyway of overriding the default signal for PopupMenus
swing editing JTree nodes
How to get the value from action to the javascript.
Generics: Shape example does not work as SUN says
PopupMenu in Menu?