Package javax.swing.border

Examples of javax.swing.border.Border


                putClientProperty(SubstanceLookAndFeel.BUTTON_OPEN_SIDE_PROPERTY, openSides);
                bkgnd = new CoolButtonRightBackground(this);
                break;
        }
        Insets insets = bkgnd.getInsets();
        Border border = BorderFactory.createEmptyBorder(
            insets.top, insets.left, insets.bottom, insets.right
        );
        setBorder(border);
    }
View Full Code Here


                putClientProperty(SubstanceLookAndFeel.BUTTON_OPEN_SIDE_PROPERTY, openSides);
                bkgnd = new CoolButtonRightBackground(this);
                break;
        }
        Insets insets = bkgnd.getInsets();
        Border border = BorderFactory.createEmptyBorder(
            insets.top, insets.left, insets.bottom, insets.right
        );
        setBorder(border);
    }
View Full Code Here

        label.setForeground(TextColor);
        label.setBackground(BackgroundColor);
        label.setOpaque(true);
        label.setHorizontalAlignment(SwingConstants.CENTER);

        Border emptyBorder = BorderFactory.createEmptyBorder(20, 20, 20, 20);
        Border lineBorder = BorderFactory.createLineBorder(BorderColor);
        Border border =
            BorderFactory.createCompoundBorder(lineBorder, emptyBorder);
        label.setBorder(border);

        Font font = label.getFont();
        font = font.deriveFont(18f);
View Full Code Here

            return;
        }
        final JTextField editor = new JTextField();
        final String oldText = label.getText();
        editor.setText(oldText);
        Border border = BorderFactory.createLineBorder(Color.gray);
        editor.setBorder(border);

        Dimension size = editor.getPreferredSize();
        editor.setPreferredSize(new Dimension(145, size.height));
View Full Code Here

        c.gridy = 1;
        c.anchor = GridBagConstraints.CENTER;
        c.fill = GridBagConstraints.HORIZONTAL;
        content.add(renderingIntent, c);

        Border border = BorderFactory.createEmptyBorder(4, 4, 4, 4);
        content.setBorder(border);
    }
View Full Code Here

        add(sort);
        add(Box.createHorizontalStrut(8));
//        add(Box.createHorizontalGlue());

        // Add space above and below, to tune the layout:
        Border border = BorderFactory.createEmptyBorder(0, 0, 3, 0);
        setBorder(border);

        ImageDatumComparator comp = sort.getSort();
        boolean inverted = sort.getSortInverted();
        int size = sizeSlider.getValue();
View Full Code Here

    private void layoutComponents() {
        setLayout(new BoxLayout(this, BoxLayout.X_AXIS));

        // Add space above and below, to tune the Mac layout:
        Border border = BorderFactory.createEmptyBorder(3, 0, 3, 0);
        setBorder(border);

        add(Box.createHorizontalStrut(8));

        add(btnBack);
View Full Code Here

    /**
     * Reset the border on the given component, removing its global
     * preference change listener and restoring its original border.
     */
    public static void unsetBorder(JComponent comp) {
        Border border = comp.getBorder();
        if (border instanceof ToggleTitleBorder) {
            ToggleTitleBorder ttborder = (ToggleTitleBorder) border;
            Prefs.removePreferenceChangeListener(ttborder);
            comp.setBorder(ttborder.original);
        }
View Full Code Here

    // *** Folder tree path persistence end ***

    private void initMemoryMeter() {
        if (memory == null) {
            memory = new MemoryMeter();
            Border empty = BorderFactory.createEmptyBorder(6, 0, 6, 0);
            Border line = BorderFactory.createLineBorder(Color.gray);
            Border compound = BorderFactory.createCompoundBorder(empty, line);
            memory.setBorder(compound);
        }
    }
View Full Code Here

        buttons.add(Box.createHorizontalGlue());
        buttons.add(cancelButton);
        buttons.add(Box.createHorizontalStrut(6));
        buttons.add(exportButton);

        Border border = BorderFactory.createEmptyBorder(6, 10, 10, 10);
        buttons.setBorder(border);
    }
View Full Code Here

TOP

Related Classes of javax.swing.border.Border

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.