Examples of EmptyBorder


Examples of charvax.swing.border.EmptyBorder

      _ownerComponent = owner_;
      setLayout(new BorderLayout());

      JPanel northpan = new JPanel();
      northpan.setBorder(new EmptyBorder(2,2,1,2));

      JPanel messagepanel = new JPanel();
      if (message_ instanceof String) {
    messagepanel.add(new JLabel((String) message_));
      }
      else if (message_ instanceof Object[]) {
    messagepanel.setLayout(
      new BoxLayout(getOwner(), BoxLayout.Y_AXIS));

    Object[] objects = (Object[]) message_;
    for (int i=0; i<objects.length; i++) {
        messagepanel.add(new JLabel(objects[i].toString()));
    }
      }
      else {
    throw new IllegalArgumentException("illegal message type " +
           message_.getClass().getName());
      }

      northpan.add(messagepanel);
      add(northpan, BorderLayout.NORTH);

      if (_wantsInput) {
    JPanel centerpan = new JPanel();
    centerpan.setBorder(new EmptyBorder(1, 1, 1, 1));
    _inputField = new JTextField(_inputValue, 20);
    _inputField.addActionListener(this);
    centerpan.add(_inputField);
    add(centerpan, BorderLayout.CENTER);
      }
View Full Code Here

Examples of com.ardor3d.extension.ui.border.EmptyBorder

public class FloatingUIContainer extends UIFrame {

    public FloatingUIContainer() {
        super(null);
        setDecorated(false);
        getContentPanel().setBorder(new EmptyBorder());
        getContentPanel().setLayout(new RowLayout(false));
        setBackdrop(null);

        applySuperSkin();
    }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

    ScrollableJPanel rootPn = new ScrollableJPanel();
    rootPn.setLayout(new BorderLayout());
    rootPn.setBorder(Borders.DLU4_BORDER);

    JPanel content = new JPanel(new TabLayout(1));
    content.setBorder(new EmptyBorder(10, 10, 10, 10));

    content.add(DefaultComponentFactory.getInstance().createSeparator(mLocalizer.msg("section.head", "Favorite")));

    content.add(createTitleChangePanel());
    content.add(mFavoriteConfigurator.createConfigurationPanel());
View Full Code Here

Examples of javax.swing.border.EmptyBorder

      mDialog = UiUtilities.createDialog(parent, true);
      mDialog.setTitle(mLocalizer.msg("configureBackgroundStyleDialogTitle", "Configure background style '{0}'", style
          .getName()));

      JPanel dialogContent = (JPanel) mDialog.getContentPane();
      dialogContent.setBorder(new EmptyBorder(10, 10, 11, 11));
      dialogContent.setLayout(new BorderLayout(0, 15));

      JPanel content = new JPanel(new BorderLayout());

      content.add(style.createSettingsContent(), BorderLayout.NORTH);
View Full Code Here

Examples of javax.swing.border.EmptyBorder

        if (preferencesDialog == null) {
            preferencesDialog = new JDialog();
            preferencesDialog.setTitle("TinyLMS: "+labels.getString("application.preferences"));
            preferencesDialog.getContentPane().add(new PreferencesPanel());
            ((JComponent) preferencesDialog.getContentPane()).setBorder(
                    new EmptyBorder(14,20,20,20)
                    );
            preferencesDialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
            PreferencesUtil.installFramePrefsHandler(userPrefs, "preferencesDialog", preferencesDialog);
            preferencesDialog.pack();
            preferencesDialog.setResizable(false);
View Full Code Here

Examples of javax.swing.border.EmptyBorder

   * Initializes the GUI components of this dialog.
   */
  private void initialize()
  {
    final JPanel contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    contentPane.setLayout(new GridBagLayout());

    pageMessageFormatter = new MessageFormat(messages.getString("progress-dialog.page-label")); //$NON-NLS-1$
    rowsMessageFormatter = new MessageFormat(messages.getString("progress-dialog.rows-label")); //$NON-NLS-1$
    passMessageFormatter = new MessageFormat(messages.getString("progress-dialog.pass-label-0")); //$NON-NLS-1$
View Full Code Here

Examples of javax.swing.border.EmptyBorder

    /* Add a mouse listener */
    addMouseListener(new ConsoleMouseListener());

    /* Set a border */
    setBorder(new EmptyBorder(3, 5, 5, 0));

    /* Set the cursor color */
    cursorColor = Color.LIGHT_GRAY;
  }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

    buttonHolder.add(new JButton(saveAction));
    buttonHolder.add(new JButton(closeAction));

    final JPanel panel = new JPanel();
    panel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    panel.setBorder(new EmptyBorder(5, 5, 5, 5));
    panel.add(buttonHolder);
    return panel;
  }
View Full Code Here

Examples of javax.swing.border.EmptyBorder

    final Action loadAction = new LoadAction();
    final Action importAction = new ImportAction();

    final JPanel panel = new JPanel();
    panel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    panel.setBorder(new EmptyBorder(5, 5, 5, 5));

    final JPanel buttonHolder = new JPanel();
    buttonHolder.setLayout(new GridLayout(1, 4, 5, 5));
    buttonHolder.add(new JButton(importAction));
    buttonHolder.add(new JButton(loadAction));
View Full Code Here

Examples of javax.swing.border.EmptyBorder

    buttonHolder.add(new JButton(new CancelAction()));
    buttonHolder.add(new JButton(new UpdateAction()));

    final JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    buttonPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
    buttonPanel.add(buttonHolder);

    final JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.add(createDetailEditorPanel(), BorderLayout.CENTER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.