Package javax.swing.border

Examples of javax.swing.border.CompoundBorder


        }

        if (this.selected) {
            Border border = getBorder();
            Border margin = new EtchedBorder();
            setBorder(new CompoundBorder(border, margin));
        }

        SwingUtilities.invokeLater(new Validator());
    }
View Full Code Here


    Border border = c.getBorder();
    if (border instanceof SubstanceBorder)
      return true;

    if (border instanceof CompoundBorder) {
      CompoundBorder cb = (CompoundBorder) border;
      if (cb.getOutsideBorder() instanceof SubstanceBorder)
        return true;
    }

    return false;
  }
View Full Code Here

        private void showCredits() {
            credits = new JLabel();
            credits.setName("credits");
            credits.setFont(UIManager.getFont("Table.font").deriveFont(24f));
            credits.setHorizontalAlignment(JLabel.CENTER);
            credits.setBorder(new CompoundBorder(new TitledBorder(""),
                    new EmptyBorder(20,20,20,20)));

            dataPanel.showMessageLayer(credits, .75f);
            DemoUtils.injectResources(XTableDemo.this, dataPanel);
        }
View Full Code Here

  private static JLabel createLabel(String text)
  {
    JLabel label = new JLabel(text);
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setBorder(new CompoundBorder(new EtchedBorder(), new EmptyBorder(5, 10, 5, 10)));
    return label;
  }
View Full Code Here

        protected String getBorderTitle(Border border) {
            if (border instanceof TitledBorder) {
                return ((TitledBorder) border).getTitle();
            } else if (border instanceof CompoundBorder) {
                CompoundBorder compoundBorder = (CompoundBorder) border;
                String title = getBorderTitle(compoundBorder.getInsideBorder());
                return (title != null) ? title : getBorderTitle(compoundBorder
                        .getOutsideBorder());
            }
            return null;
        }
View Full Code Here

    // set background and panel size
    setBackground(Color.WHITE);
    EmptyBorder line1 = new EmptyBorder(4, 10, 4, 2);
    LineBorder line2 = new LineBorder(Color.BLACK, 1);
    EmptyBorder line3 = new EmptyBorder(4, 10, 4, 10);
    CompoundBorder cb1 = new CompoundBorder(line1, line2);
    CompoundBorder cb2 = new CompoundBorder(cb1, line3);
    setBorder(cb2);

    JLabel statusLabel = new JLabel(" Status: ");
    statusLabel.setFont(new Font("san-serif", Font.PLAIN, 10));
View Full Code Here

    paneSize.height = (int) (GuiParams.WINDOW_HEIGHT * (0.1));

    // set border
    EmptyBorder line1 = new EmptyBorder(2, 10, 2, 2);
    LineBorder line2 = new LineBorder(Color.BLACK, 1);
    CompoundBorder cp = new CompoundBorder(line1, line2);
    this.setBorder(cp);

    // add query field to pane
    field = new QueryField(listener);
    add(field, BorderLayout.EAST);
View Full Code Here

       quoteIdentifersCheckBox.setToolTipText(cbToolTipText);
       panel.add(quoteIdentifersCheckBox, c);
   }   
   
    private Border getTitledBorder(String title) {
        CompoundBorder border =
            new CompoundBorder(new EmptyBorder(10,10,10,10),
                               new TitledBorder(title));       
        return border;
    }
View Full Code Here

    }


   
    private Border getTitledBorder(String title) {
        CompoundBorder border =
            new CompoundBorder(new EmptyBorder(10,10,10,10),
                               new TitledBorder(title));       
        return border;
    }
View Full Code Here

        testColumnNamesCheckBox.setToolTipText(cbToolTipText);
        panel.add(testColumnNamesCheckBox, c);       
    }
   
    private Border getTitledBorder(String title) {
        CompoundBorder border =
            new CompoundBorder(new EmptyBorder(10,10,10,10),
                               new TitledBorder(title));       
        return border;
    }
View Full Code Here

TOP

Related Classes of javax.swing.border.CompoundBorder

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.