Package org.jamesii.gui.utils

Examples of org.jamesii.gui.utils.FlatButton


    super.addImpl(progressBar, BorderLayout.CENTER, 0);

    Icon gcIcon = IconManager.getIcon(IconIdentifier.DELETE_SMALL, "GC");

    gcButton = new FlatButton(gcIcon);
    gcButton.setToolTipText("Run Garbage Collector");
    gcButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here


    textField.setBorder(null);

    panel.setOpaque(false);
    panel.add(textField, BorderLayout.CENTER);

    FlatButton button = new FlatButton("...");
    panel.add(button, BorderLayout.LINE_END);

    button.addActionListener(this);

    return panel;
  }
View Full Code Here

    Box hBox = Box.createHorizontalBox();
    hBox.setOpaque(false);

    if (implementations != null && !implementations.isEmpty()) {
      FlatButton impButton =
          new FlatButton(new ImplementationSelectionAction<>(implementations,
              this, editor));
      hBox.add(impButton);
    }

    if ((v != null || editor.canHandleNull())
        && editor.supportsExternalEditing()) {

      final FlatButton externalButton = new FlatButton();

      if (editor.asDialog()) {
        externalButton.addActionListener(new ExternalButtonWithDialogListener(
            row, table, column));
        externalButton.setText("...");
      } else {
        externalButton.addActionListener(new ExternalButtonPopupListener(row,
            column, table, externalButton));

        Icon icon = IconManager.getIcon(IconIdentifier.RIGHT_SMALL, ">");
        externalButton.setIcon(icon);
      }
      hBox.add(externalButton);

      // in case there is now inplace editor use the paintcomponent if
      // there is
View Full Code Here

    backwardButton = new JButton(new BackwardAction(actionListener));

    forwardButton = new JButton(new ForwardAction(actionListener));
    forwardButton.setHorizontalTextPosition(SwingConstants.LEFT);
    helpButton = new FlatButton(new HelpAction(actionListener));
    cancelButton = new JButton(new CancelAction(actionListener));
    finishButton = new JButton(new FinishAction(actionListener));

    buttonPanel.setLayout(new BorderLayout());
    buttonPanel.add(new JSeparator(), BorderLayout.NORTH);
View Full Code Here

TOP

Related Classes of org.jamesii.gui.utils.FlatButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.