Main Page

Previous Next

Exercises

  1. Implement a dialog initiated from a toolbar button to select the current element color.

  2. Add a menu item to the Element context menu that will display information about the element at the cursor in a dialog – what it is and its basic defining data.

  3. Display a special context menu when the cursor is over a TEXT object that provides a menu option to edit the text through a dialog.

  4. Change the implementations of the element classes to make use of the combined translate and rotate operation.

  5. Add a toolbar button to switch highlighting on and off. The same button should turn it on when it is off and vice versa, so you need to change the button label appropriately.

  6. Add a Scale menu item to the element context menu that will allow an element to be scaled by dragging the mouse cursor.

  7. Implement a main menu item and a toolbar button for choosing a custom color.

Previous Next
JavaScript Editor Java Tutorials Free JavaScript Editor