Package javax.swing.border

Examples of javax.swing.border.BevelBorder


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


    public static TitledBorder createTitledBorder(final Border border, final String title, final int titleJustification, final int titlePosition, final Font titleFont, final Color titleColor) {
        return new TitledBorder(border, title, titleJustification, titlePosition, titleFont, titleColor);
    }

    public static Border createBevelBorder(final int type, final Color highlightOuter, final Color highlightInner, final Color shadowOuter, final Color shadowInner) {
        return new BevelBorder(type, highlightOuter, highlightInner, shadowOuter, shadowInner);
    }
View Full Code Here

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

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

    public static Border createEtchedBorder(final int type) {
        return new EtchedBorder(type);
    }

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

    public static Border createBevelBorder(final int type) {
        return new BevelBorder(type);
    }

    public static Border createRaisedBevelBorder() {
        return new BevelBorder(BevelBorder.RAISED);
    }
View Full Code Here

    public static Border createRaisedBevelBorder() {
        return new BevelBorder(BevelBorder.RAISED);
    }

    public static Border createLoweredBevelBorder() {
        return new BevelBorder(BevelBorder.LOWERED);
    }
View Full Code Here

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

          };
        scroller.getViewport().add(description);

        JPanel textWrapper = new JPanel(new BorderLayout());
//      textWrapper.setAlignmentX(LEFT_ALIGNMENT);
        textWrapper.setBorder(new BevelBorder(BevelBorder.LOWERED));
        textWrapper.add("Center", scroller);

        g.gridwidth = 3;   layout.setConstraints(textWrapper, g);
        panel.add(textWrapper);
        g.gridwidth = 1;
View Full Code Here

                      JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        scroller.setPreferredSize(new Dimension(100, 100));

        JPanel textWrapper = new JPanel(new BorderLayout());
//      textWrapper.setAlignmentX(LEFT_ALIGNMENT);
        textWrapper.setBorder(new BevelBorder(BevelBorder.LOWERED));
        textWrapper.add("Center", scroller);

        g.weighty = 100;
        g.gridwidth = 2;   layout.setConstraints(textWrapper, g);
        panel.add(textWrapper);
View Full Code Here

  public JaouaniTchat() {
    setResizable(false);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(100, 100, 600, 400);
    contentPane = new JPanel();
    contentPane.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
    setContentPane(contentPane);
    contentPane.setLayout(null);
    setLocationRelativeTo(null);
   
   
View Full Code Here

TOP

Related Classes of javax.swing.border.BevelBorder

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.