Ejemplo n.º 1
0
  /**
   * @see AbstractAction
   * @param event
   */
  public void actionPerformed(final ActionEvent event) {

    // Perform action
    JCheckBoxMenuItem cb = (JCheckBoxMenuItem) event.getSource();

    // Determine status
    networkPanel.setWeightsVisible(cb.isSelected());
  }
Ejemplo n.º 2
0
 /**
  * @see AbstractAction
  * @param event
  */
 public void actionPerformed(final ActionEvent event) {
   JCheckBoxMenuItem cb = (JCheckBoxMenuItem) event.getSource();
   networkPanel.setAutoZoomMode(cb.isSelected());
 }