All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.simulationconstructionset.gui.actions.dialogActions.AboutAction Maven / Gradle / Ivy

package us.ihmc.simulationconstructionset.gui.actions.dialogActions;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

import us.ihmc.simulationconstructionset.gui.dialogConstructors.AboutDialogConstructor;

public class AboutAction extends AbstractAction
{
   private static final long serialVersionUID = 6795904392077029991L;

   private final AboutDialogConstructor constructor;

   public AboutAction(AboutDialogConstructor constructor)
   {
      super("About...");
      this.constructor = constructor;

      putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A));
      putValue(Action.LONG_DESCRIPTION, "Display About Information");
      putValue(Action.SHORT_DESCRIPTION, "About");
   }

   @Override
   public void actionPerformed(ActionEvent actionEventb)
   {
      constructor.constructDialog();
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy