Re: Draw pointable / pickable lines, etc, how to?
Kevin wrote:
I am wondering what is the best way to this common GUI task:
Draw some rectangles, lines, pies, etc (say, in a JPanel). Make sure
these things are "pointable" and "pickable": when mouse is moved over
it, we can press mouse key to "pick up" it and drag it around, etc.
Moreover, can someone recommend some sort of framework/toolset/api for
doing this as easily as possible ? I have a need to do something very
similar,
Richard
.
Relevant Pages
- Draw pointable / pickable lines, etc, how to?
... Draw some rectangles, lines, pies, etc (say, in a JPanel). ... it, we can press mouse key to "pick up" it and drag it around, etc. ... the above array to see if the mouse was in any of them. ... (comp.lang.java.gui) - Problems with Drag and Drop
... I'm new to Drag and Drop although I have been coding in Java for several ... I am trying to do a drag/move of a background color from one JPanel to ... When I use a non-custom instance of TransferHandler and give exportAsDrag ... Create a grid of roles. ... (comp.lang.java.gui) - Re: Component movement???
... Just put a MouseMotionListener on the component you want to drag. ... the mouse cursor when dragging use setCursoron the JPanel (remember ... You can find the standard DnD cursors as constants ... I recently created a docking window framework (similar to that in ... (comp.lang.java.programmer) - Drag and drop question
... Am I right in understanding that it is possible to add drag and drop support ... colors from one JPanel to another. ... pool of distinct colors. ... I want them to put the color for that role back into the pool by dragging it ... (comp.lang.java.programmer) - Re: Set a system-wide mouse cursor?
... > You can't control what it looks like in other apps. ... cursor to a copy cursor and allowing the uesr to drag panels out one frame ... to be maintained from the first drag to the next mouseReleased event. ... I need to allow the user to drag out the JPanel ... (comp.lang.java.gui) |
|