예제 #1
0
 /**
  * Create the associated button
  *
  * @return the button
  */
 public static PushButton createPushButton() {
   PushButton pushButton = ScilabPushButton.createPushButton();
   pushButton.setIcon(ICON);
   pushButton.setToolTipText(LABEL);
   pushButton.setCallback(getCallBack());
   return pushButton;
 }
예제 #2
0
  /** @return the corresponding button */
  public static PushButton createButton() {
    PushButton button = ScilabPushButton.createPushButton();
    button.setCallback(new GoToSCIAction());
    ((SwingScilabPushButton) button.getAsSimplePushButton())
        .setToolTipText(UiDataMessages.SCIFOLDER);
    ((SwingScilabPushButton) button.getAsSimplePushButton()).setIcon(FileUtils.getSCIIcon());

    return button;
  }