The Comment class from Demo1 is a nice comment but it can’t be resized by merely doing aComment.setResizable(true);
This makes the handles ok, but dragging them to resize doesn’t stick. The Comment snaps back to its original size. The size only changes if you edit the text in the label.
- Position all the parts of the area relative to the text label.
- Leave room for the JGo3DNoteRect decorations.
public void layoutChildren(JGoObject childchanged) …
of the Comment class can be used to change the size but it isn’t
called when the handles are dragged. So, what exactly do you
have to do to make the Comment resizable by dragging the handles?