Package javax.swing.border

Examples of javax.swing.border.LineBorder


    
     //The following declarations are the style for titled border used in the appl.
     Font titledBorderTextFont = new java.awt.Font("Dialog", 0, 12);
     Color titledBorderTextColor = Color.BLACK;
     Color titledBorderColor = Color.GRAY;
     LineBorder border = new javax.swing.border.LineBorder(titledBorderColor, 1, true);
     serverMessages.setEditable(false);
     //Set up the border and border style for the all titled borders
     /*TitledBorder titledBorder =
       javax.swing.BorderFactory.createTitledBorder(
           border,
View Full Code Here


      JLabel channelLabel = getBorderedLabel(i18n.CHANNEL_LABEL, border);
      _updateServerChannelTF = getSizedTextField(mediumField);
     
      locationPanel.add(channelLabel, getLabelConstraints(c));
      locationPanel.add(_updateServerChannelTF, getFieldFillHorizontalConstaints(c));
      locationPanel.setBorder(new LineBorder(Color.LIGHT_GRAY, 1));
     
      return locationPanel;
   }
View Full Code Here

        JEditorPane htmlPane = new JEditorPane();
        htmlPane.setEditable(false);
        htmlPane.setContentType("text/html");
        htmlPane.setEditorKit( new HTMLEditorKit() );
        htmlPane.setBorder(new LineBorder(Color.black));
        htmlPane.addHyperlinkListener(this);
        htmlPane.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                AboutWindow.this.setVisible(false);
            }
View Full Code Here

    private class PercentLabel extends JLabel {
        public PercentLabel() {
            this.setBackground(Color.white);
            this.setText(getUsageString());
            this.setBorder(new LineBorder(Color.gray));
            new MemoryCheckThread().start();
        }
View Full Code Here

    _authenticationService = authenticationService;
    _glassPane = glassPane;
    _userPreferences = userPreferences;

    setOpaque(false);
    setBorder(new CompoundBorder(new LineBorder(_borderColor, 1), new EmptyBorder(20, 20, 20, 30)));
    setVisible(false);
    setSize(WIDTH, 400);
    setLocation(getXWhenOut(), POSITION_Y);
  }
View Full Code Here

    super.setBackground(bg);
    updateBorder();
  }

  private void updateBorder() {
    setBorder(new LineBorder(getBackground(), getMarginSize()));
  }
View Full Code Here

    ToolTipManager.sharedInstance().setInitialDelay(500);
    PopupFactory.setSharedInstance(new DCPopupFactory());

    EmptyBorder emptyBorder = new EmptyBorder(0, 0, 0, 0);
    LineBorder borderDarkest3 = new LineBorder(WidgetUtils.BG_COLOR_DARKEST, 3);
    UIManager.put("ScrollPane.border", emptyBorder);
    UIManager.put("Menu.border", borderDarkest3);
    UIManager.put("Menu.background", WidgetUtils.BG_COLOR_DARKEST);
    UIManager.put("Menu.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);

    UIManager.put("MenuItem.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("MenuItem.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
   
    UIManager.put("List.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("List.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
    UIManager.put("List.focusCellHighlightBorder", WidgetUtils.BORDER_THIN);
   
    UIManager.put("Tree.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("Tree.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
    UIManager.put("Tree.selectionBorderColor", WidgetUtils.BG_COLOR_MEDIUM);
   
    UIManager.put("Table.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("Table.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
    UIManager.put("Table.focusCellHighlightBorder", WidgetUtils.BORDER_THIN);
   
    // splitpane "flattening" (remove bevel like borders in divider)
    UIManager.put("SplitPane.border", new EmptyBorder(0, 0, 0, 0));
    UIManager.put("SplitPaneDivider.border", new EmptyBorder(0, 0, 0, 0));

    UIManager.put("PopupMenu.border", emptyBorder);
    UIManager.put("PopupMenu.background", WidgetUtils.BG_COLOR_DARKEST);
    UIManager.put("PopupMenu.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("MenuItem.border", borderDarkest3);
    UIManager.put("MenuItem.background", WidgetUtils.BG_COLOR_DARKEST);
    UIManager.put("MenuItem.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("MenuBar.border", emptyBorder);
    UIManager.put("MenuBar.background", WidgetUtils.BG_COLOR_DARKEST);
    UIManager.put("MenuBar.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);

    // white background for input components
    UIManager.put("Tree.background", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("TextArea.background", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("PasswordField.background", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("FormattedTextField.background", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("EditorPane.background", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("ComboBox.background", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("TextField.background", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("Spinner.background", WidgetUtils.BG_COLOR_BRIGHTEST);

    // table header styling
    UIManager.put("TableHeader.background", WidgetUtils.BG_COLOR_DARK);
    UIManager.put("TableHeader.focusCellBackground", WidgetUtils.BG_COLOR_LESS_DARK);
    UIManager.put("TableHeader.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
    UIManager.put("TableHeader.cellBorder", new LineBorder(WidgetUtils.BG_COLOR_LESS_DARK));

    // titled borders
    UIManager.put("TitledBorder.font", WidgetUtils.FONT_HEADER1);
    UIManager.put("TitledBorder.titleColor", WidgetUtils.BG_COLOR_BLUE_BRIGHT);
View Full Code Here

    Border b = this.richTooltipPanel.getBorder();
    if (b == null || b instanceof UIResource) {
      Border toSet = UIManager.getBorder("RichTooltipPanel.border");
      if (toSet == null)
        toSet = new BorderUIResource.CompoundBorderUIResource(
            new LineBorder(FlamingoUtilities.getBorderColor()),
            new EmptyBorder(2, 4, 3, 4));
      this.richTooltipPanel.setBorder(toSet);
    }
    LookAndFeel.installProperty(this.richTooltipPanel, "opaque",
        Boolean.TRUE);
View Full Code Here

    public Statistics() {
        setLayout(null);
        setPreferredSize( new Dimension(270, 200) );

        EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);
        LineBorder lineBorder   = new LineBorder(Color.gray, 1);

        TitledBorder titledBorder = BorderFactory.createTitledBorder(lineBorder,
                                                                     "Statistics",
                                                                     TitledBorder.LEFT,
                                                                     TitledBorder.TOP,
View Full Code Here

    public AspectTest() {
        factory = new MediaPlayerFactory();
        mediaPlayer = factory.newEmbeddedMediaPlayer();

        videoPane = new JPanel();
        videoPane.setBorder(new CompoundBorder(new LineBorder(Color.black, 2), new EmptyBorder(16, 16, 16, 16)));
        videoPane.setLayout(new BorderLayout());
        videoPane.setBackground(Color.white);

        videoCanvas = new Canvas();
        videoCanvas.setBackground(Color.red);
View Full Code Here

TOP

Related Classes of javax.swing.border.LineBorder

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.