Package javax.swing.border

Examples of javax.swing.border.BevelBorder


         */
        BrushChooserButtonPanel(boolean airBrush) {
          this.setSize(new Dimension(140, 140));
          this.setMaximumSize(new Dimension(140, 140));
          this.setBackground(Color.LIGHT_GRAY);
          this.setBorder(new BevelBorder(BevelBorder.RAISED));
          this.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
         
          ButtonGroup brushButtonGroup = new ButtonGroup();
          if (airBrush) {
              this.add(new BrushChooserButton(brushButtonGroup, BrushType.CIRCLE_SPRAY_0));
View Full Code Here


        try {
            DataModel array = mainModel.getChild(MediaArrayModel.FIELD_NAME);
            JComponent table = factory.createDefaultEditor(array).getJComponent();

            table.setBorder(new BevelBorder(BevelBorder.LOWERED));
            panel.add(table, BorderLayout.CENTER);

            Viewable add = mainModel.getViewableChild(MainModel.ADD_MEDIUM_COMMAND);
            Viewable edit = mainModel.getViewableChild(MainModel.EDIT_MEDIUM_COMMAND);
            Viewable delete = mainModel.getViewableChild(MainModel.DELETE_MEDIUM_COMMAND);
View Full Code Here

                            if (comp != null) {
                                panel.add(comp, BorderLayout.CENTER);
                                gridbag.gridy = gridy;
                                getJPanel().add(panel, gridbag);
                                panel.setBorder(new BevelBorder(BevelBorder.RAISED));
                                ++gridy;
                            }
                        } catch (Exception ex) {
                            //FIX
                            ex.printStackTrace();
View Full Code Here

            if (hasMore) {
                tipText.append("...");
            }

            setOpaque(true);
            setBorder(new BevelBorder(BevelBorder.LOWERED));
            update();
        }                          
View Full Code Here

    public DomEcho04()
    {
       // Make a nice border
       EmptyBorder eb = new EmptyBorder(5,5,5,5);
       BevelBorder bb = new BevelBorder(BevelBorder.LOWERED);
       CompoundBorder cb = new CompoundBorder(eb,bb);
       this.setBorder(new CompoundBorder(cb,eb));

       // Set up the tree
       JTree tree = new JTree(new DomToTreeModelAdapter());
View Full Code Here

    public DomEcho03()
    {
       // Make a nice border
       EmptyBorder eb = new EmptyBorder(5,5,5,5);
       BevelBorder bb = new BevelBorder(BevelBorder.LOWERED);
       CompoundBorder cb = new CompoundBorder(eb,bb);
       this.setBorder(new CompoundBorder(cb,eb));

       // Set up the tree
       JTree tree = new JTree(new DomToTreeModelAdapter());
View Full Code Here

    public DomEcho02()
    {
       // Make a nice border
       EmptyBorder eb = new EmptyBorder(5,5,5,5);
       BevelBorder bb = new BevelBorder(BevelBorder.LOWERED);
       CompoundBorder cb = new CompoundBorder(eb,bb);
       this.setBorder(new CompoundBorder(cb,eb));

       // Set up the tree
       JTree tree = new JTree(new DomToTreeModelAdapter());
View Full Code Here

    public DomEcho05()
    {
       // Make a nice border
       EmptyBorder eb = new EmptyBorder(5,5,5,5);
       BevelBorder bb = new BevelBorder(BevelBorder.LOWERED);
       CompoundBorder cb = new CompoundBorder(eb,bb);
       this.setBorder(new CompoundBorder(cb,eb));

       // Set up the tree
       JTree tree = new JTree(new DomToTreeModelAdapter());
View Full Code Here

    public DomEcho06()
    {
       // Make a nice border
       EmptyBorder eb = new EmptyBorder(5,5,5,5);
       BevelBorder bb = new BevelBorder(BevelBorder.LOWERED);
       CompoundBorder cb = new CompoundBorder(eb,bb);
       this.setBorder(new CompoundBorder(cb,eb));

       // Set up the tree
       JTree tree = new JTree(new DomToTreeModelAdapter());
View Full Code Here

            if (icon.imageWasLoaded()) {
                image.setBorderPainted(false);
                size = new Dimension(icon.getIconWidth(),
                                     icon.getIconHeight());
            } else {
                Border outside = new BevelBorder(BevelBorder.LOWERED,
                                                 IMG_BORDER_SHADOW,
                                                 IMG_BORDER_HIGHLIGHT);
                image.setBorder(new CompoundBorder(outside,
                                                  new EmptyBorder(5, 5, 5, 5)));
                image.setContentAreaFilled(false);
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.