corner imagecorner image
FeaturesPluginsDocs & SupportCommunityPartners

NetBeans UML 6.5 Keyboard Shortcuts

NetBeans UML shortcuts for the 6.5. release are listed in this document.

Keyboard Shortcuts: UML Documentation Window

The table below describes the keyboard shortcuts for functionality available in the Documentation window's toolbar.

Ctrl-B Bolds the highlighted text. If the highlighted text is already in bold, removes the bold.
Ctrl-I Italicizes the highlighted text. If the highlighted text is already italicized, removes the italics.
Ctrl-U Underlines the highlighted text. If the highlighted text is already underlined, removes the underline.
Ctrl-Alt-A Opens a color grid dialog box where you can select a new color for your fonts in the Documentation window.
Ctrl-Shift-C Lets you center all selected text in the Documentation window.
Ctrl-Shift-L Lets you align all selected text to the left in the Documentation window.
Ctrl-Shift-R Lets you align all selected text to the right in the Documentation window.

Keyboard Shortcuts: UML Diagram Editor

Keyboard shortcuts commands are available to activate commands available via the Diagram editor and the Diagram toolbar.

Diagram Editor

The following keyboard commands can be used to manipulate every UML diagram type in the Diagram editor window:

ESC Does one of the following actions:
  • Exits the element creation mode
  • Deselects the selected items
  • Clears the current compartment selection mode
Ctrl+ Zooms in the view of your diagram.
Ctrl- Zooms out the view of your diagram.
Alt-ENTER Adds a message after the currently selected message in a sequence diagram with two lifelines and a message selected. nope
Alt-Shift-A Inserts attribute into selected element on diagram, if applicable.
Ctrl-A Selects all elements and links in the active diagram.
Ctrl-C Copies the selected element.
Ctrl-T Places the current focus on the track bar above the active sequence diagram.
Ctrl-V Lets you paste the most recently copied or cut element. When you press Ctrl-V, the IDE displays a temporary placement icon. Move the placement icon to the desired location and click to paste the element.
Ctrl-X Cuts the selected element.
Ctrl-ENTER Does one of the following actions:
  • Adds the selected elements in the Projects to the active diagram in the Diagram editor.
  • Adds the selected component from the context Palette window into the Diagram editor
  • Adds a message before the currently selected message in a sequence diagram with two lifelines and a message selected.YES
Ctrl-Shift + Adds the current element to a group of selected elements.
Ctrl-Shift - Removes the current element from the group of selected elements.
Ctrl-Shift-5 Locates and highlights the active diagram in the Projects window.
Ctrl-Shift-F Rearranges your diagram to fit into the current size of the Diagram Editor window.
Ctrl-Shift-K Rearranges your diagram into a hierarchy pattern, with most elements falling below a lead element.
Ctrl-Shift-X Displays the Export as Image dialog to allow you to save your diagram into an image file.
Ctrl-Shift-P Displays a Print Preview of your diagram.
Tab Selects the next diagram element in the current diagram.
Shift-F10 Displays the pop-up menu for the selected element.
Shift-Tab Selects the previous diagram element in the current diagram.
Shift-Up Arrow Traverses labels in a diagram in an upwards direction.
Shift-Down Arrow Traverses labels in a diagram in a downwards direction.
Shift-Right Arrow Traverses labels in a diagram in a rightwards direction.
Shift-Left Arrow Traverses labels in a diagram in a leftwards direction.

 

Diagram Toolbar

Use the following keyboard commands to activate the action for each of the buttons in the Diagram toolbar.

Ctrl-alt-Shift-S Select Returns the cursor to its default mode.
Ctrl-Alt-Shift-Z Zoom with Marquee Zooms into a diagram by specifying an area for zooming. You can drag a box or marquee over the diagram.
Ctrl-Alt-Shift-I Zoom Interactively Lets you zoom into and out of a diagram by dragging your pointer along the diagram's y-axis.
Ctrl-Alt-Shift-L Navigate Link Click any line in any diagram to immediately navigate to one of its components or elements,
Ctrl-Shift-X Export the Image Exports the diagram as a JPEG image, a Portable Network Graphics (PNG) image, or a Scalable Vector Graphic (SVG) image.
Ctrl-Alt-Shift-R Diagram Synchronization Synchronizes the information displayed in a diagram with the metadata in the .etd file.
Ctrl-Shift-F Fit diagram Automatically brings an entire diagram into full view in the Diagram editor, offering a good overview of the components that make up the diagram.
Ctrl-Shift-L Fit diagram Automatically brings an entire diagram into full view in the Diagram editor, offering a good overview of the components that make up the diagram.
Ctrl-Shift-B Show image at 100% Shows the image in the drawing window at 100 percent.
Ctrl-Alt-Shift-F Move to Front Brings the element to the front of the stack.
Ctrl-Alt-Shift-D Move Backward Sends the element back behind one element in the stack.

Ctrl-Alt-Shift-B

Move to Back Sends the element to the end of the stack.
Ctrl-Shift-K Hierarchical Layout Rearranges your diagram into a hierarchy pattern, with most elements falling below a lead element. except for sequence

 

Keyboard Shortcuts in Use: Working with UML Diagram Elements

The following describes the keyboard shortcuts you can use to create and handle UML diagram elements.

Adding Elements to a Diagram

  1. Press Ctrl-Shift-8 to navigate to the UML Modeling palette.
  2. Press TAB to select the first element in the Palette window.
  3. Press the Up or Down arrow keys to select the element you want to work with.
  4. Press Ctrl-Enter to place the currently selected element in the center of the currently active diagram in the Diagram editor.
  5. Use the Ctrl-Up, Ctrl-Down, Ctrl-Right, or Ctrl-Left keys to position the element in a different location in the Diagram editor.

Creating Relationship Between Two Elements

A relationship between two diagram elements can be established by using a relationship element, such as the implementation, generalization, nested, or association links.

  1. Press Tab or Shift-Tab to select the first diagram element in the Diagram editor.
    This is the source element of the relationship.
  2. Press Ctrl-Shift+ to lock the selected element.
    To unselect the element, press Ctrl-Shift-
  3. Repeat the previous two steps to select the second diagram element.
    This is the target element of the relationship.
  4. Press Ctrl-Shift-8 to navigate to the Modeling Palette window.Use Ctrl-P to open the context palette.
  5. Use the right arrow to open the palette
  6. Use left and right to traverse elements on the palette sub-context.
  7. Use the Up or Down Arrow keys to navigate the main context.

Copying Existing Elements From the Project Window

Use the steps below to copy an existing element from a UML model tree in the Projects window and add it to the active diagram in the Diagram editor.

  1. Press Ctrl-L to navigate to the Projects window.
  2. Press the Home key to select the first Project node in the window.
  3. Press the Up or Down arrow keys to select the element node which you want to work.
  4. Press Ctrl-Enter to place the currently selected element in the Diagram editor.
  5. Use the Ctrl-Up, Ctrl-Down, Ctrl-Right, or Ctrl-Left keys to position the element in a different location in the Diagram editor.

Navigating Through the Diagram Elements

You can navigate through each element and its relationship links using the following steps:

  1. Press Ctrl-0 to place the focus on the Diagram editor.
  2. Press the Tab key or Shift-Tab keys to navigate through the diagram elements and relatiomships
  3. Press the TAB key to return focus from the current relationship link back to the last selected diagram element.

Selecting Multiple Diagram Elements

Use the steps below to select multiple diagram elements to form a group.

  1. Press Ctrl-0 to place the focus on the Diagram editor.
  2. Bavigate to select other elements
  3. Press the Ctrl-Shift-+ keys to lock the selection of the diagram element.
  4. Press the Ctrl-Shift- keys to unlock the diagram element selection.
  5. Repeat step 3 or 4 above to select the next diagram element to add to or remove from the group of selected elements.

Resizing Diagram Elements

You can resize the diagram elements using the steps listed below.

  1. Select one or more diagram elements using the steps in the previous section.
  2. Press the shift -F10 to display the pop-up menu.
  3. Use the arrow keys to select the Set Dimension menu item.
  4. In the Set Dimension dialog window, specify the size, width, height to use for the elements you have selected.