Package javax.swing.border

Examples of javax.swing.border.EtchedBorder


        String theTitle = this.m_model.getTitle();
        int theBevelType = this.m_model.getBevelType();

        if (theBorder.equalsIgnoreCase(Constants.ETCHEDBORDER)) {
            if (theTitle == null) {
                super.setBorder(new EtchedBorder());
            } else {
                super.setBorder(new TitledBorder(new EtchedBorder(), theTitle));
            }
        }
        if (theBorder.equalsIgnoreCase(Constants.BEVELBORDER)) {
            if (theTitle == null) {
                super.setBorder(new BevelBorder(theBevelType));
View Full Code Here


    public static CompoundBorder createCompoundBorder(final Border outside, final Border inside) {
        return new CompoundBorder(outside, inside);
    }

    public static Border createEtchedBorder(final Color highlight, final Color shadow) {
        return new EtchedBorder(highlight, shadow);
    }
View Full Code Here

    public static Border createEtchedBorder(final Color highlight, final Color shadow) {
        return new EtchedBorder(highlight, shadow);
    }

    public static Border createEtchedBorder(final int type, final Color highlight, final Color shadow) {
        return new EtchedBorder(type, highlight, shadow);
    }
View Full Code Here

    public static Border createEmptyBorder(final int top, final int left, final int bottom, final int right) {
        return new EmptyBorder(top, left, bottom, right);
    }

    public static Border createEtchedBorder(final int type) {
        return new EtchedBorder(type);
    }
View Full Code Here

    public static Border createLoweredBevelBorder() {
        return new BevelBorder(BevelBorder.LOWERED);
    }

    public static Border createEtchedBorder() {
        return new EtchedBorder();
    }
View Full Code Here

            super.setName(theName);
            super.setToolTipText(theTooltip);
            super.setBackground(new Color(-1118482));
            if (theBorder.equalsIgnoreCase(Constants.ETCHEDBORDER)) {
                if (theTitle == null) {
                    super.setBorder(new EtchedBorder());
                } else {
                    super.setBorder(new TitledBorder(new EtchedBorder(), theTitle));
                }
            }
            if (theBorder.equalsIgnoreCase(Constants.BEVELBORDER)) {
                if (theTitle == null) {
                    super.setBorder(new BevelBorder(theBevelType));
View Full Code Here

    }

    private JPanel createColorChoice()
    {
        JPanel panel = new JPanel( new FlowLayout( FlowLayout.LEFT) );
        panel.setBorder(new TitledBorder(new EtchedBorder(), "Background"));
       
        if( DrawSWFConfig.getInstance().getProperty("independent_text_color").equals("true") )
        {
      color_button_ = new AlphaColorJButton( IconProvider.getInstance(), "text_color" );
        }
View Full Code Here

    //----------------------------------------------------------------------------
    private JPanel createFontEffects()
    {
        JPanel panel = new JPanel(new GridLayout(1, 3, 10, 5));
        panel.setToolTipText("Effects are only visible in Flash.");
        panel.setBorder(new TitledBorder(new EtchedBorder(), "Effects"));

        ButtonGroup group = new ButtonGroup();
        ActionListener listener = new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
View Full Code Here

    //----------------------------------------------------------------------------
    private JPanel createFontSelection()
    {
        JPanel panel = new JPanel(new GridLayout(1, 2, 10, 2));
        panel.setBorder(new TitledBorder(new EtchedBorder(), "Font"));

        FontLoader loader = FontLoader.getInstance();

        font_names_ = new OpenList(loader.getFontNames(), "Name:");
        panel.add(font_names_);
View Full Code Here

    //----------------------------------------------------------------------------
    private JPanel createTextField()
    {
        JPanel panel = new JPanel(new BorderLayout());
        panel.setBorder(new TitledBorder(new EtchedBorder(), "Text"));
        text_field_ = new JTextField("Preview Font");
        text_field_.setBackground(Color.white);
        text_field_.setForeground(Color.black);
        text_field_.setOpaque(true);
        text_field_.setBorder(new LineBorder(Color.black));
View Full Code Here

TOP

Related Classes of javax.swing.border.EtchedBorder

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.