Package javax.swing.border

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


      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

        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

   * 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

    /* 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

    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

    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

    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

        unitStrings[unitStrings.length - 1] = i18n.get(this,
                "unitStrings.concentric",
                "concentric");

        JComboBox combo = new JComboBox(unitStrings);
        combo.setBorder(new EmptyBorder(0, 1, 0, 1));
        combo.setSelectedIndex(currentIndex);
        combo.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                JComboBox jcb = (JComboBox) e.getSource();
                OMRangeRings rr = (OMRangeRings) circle;
View Full Code Here

        initialiseComponents();
    }

    private void initialiseComponents() {
        setLayout(new BorderLayout());
        setBorder(new EmptyBorder(4, 4, 4, 4));

        listOneScrollPane.setViewportView(listOneList);
        listTwoScrollPane.setViewportView(listTwoList);

        splitPane.setLeftComponent(listOneScrollPane);
View Full Code Here

TOP

Related Classes of javax.swing.border.EmptyBorder

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.