The UI has no way to know if invisible buttons are hit, for uniform behavior
if a ComponentObject is selected it will switch the active toolbar if Drawing
toolbar is currently active.
Class MovableButtonMouseListener extends JFC's MouseInputAdpater to
provide handlers for three mouse events: mouse pressed, mouse dragged,
and mouse released.
Class PaintEditDialog is a dialog shows the current pattern settings
and provides fields to change the pattern while providing apropriate error
checking for the entered values in those fields.
Override setVisible so that initial state information can be saved
when the Editor is shown in case the user hits cancel and wants to
disregard changes made.