Package javax.swing.border

Examples of javax.swing.border.LineBorder


    private class ComboBoxEditor extends BasicComboBoxEditor {
        private ComboBoxEditor() {
            JTextField textField = (JTextField) this.getEditorComponent();
            textField.setMargin(new Insets(1, 2, 1, 1));
            textField.setBorder(new LineBorder(UIUtil.getPanelBackgound()));

        }
View Full Code Here


        super();
        setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
        Color color = new Color(255, 255, 239);
        setBackground(color);
        Border border = new CompoundBorder(
                new LineBorder(Color.GRAY, 1, false),
                new LineBorder(color, 4, false));
        setBorder(border);
        this.object = object;

        List<DBObject> chain = new ArrayList<DBObject>();
        while (object != null) {
View Full Code Here

        BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
                .getDesktopIconBorder();
        assertTrue(border.getInsideBorder() instanceof MatteBorder);
        MatteBorder insideBorder = (MatteBorder) border.getInsideBorder();
        assertTrue(border.getOutsideBorder() instanceof LineBorder);
        LineBorder outsideBorder = (LineBorder) border.getOutsideBorder();
        assertEquals(new Insets(2, 2, 1, 2), insideBorder.getBorderInsets(testButton));
        assertEquals(new Insets(1, 1, 1, 1), outsideBorder.getBorderInsets(testButton));
        assertTrue(insideBorder.isBorderOpaque());
        assertEquals(new ColorUIResource(238, 238, 238), insideBorder.getMatteColor());
        assertFalse(outsideBorder.getRoundedCorners());
        assertTrue(outsideBorder.isBorderOpaque());
        assertEquals(new ColorUIResource(122, 138, 153), outsideBorder.getLineColor());
        assertEquals(1, outsideBorder.getThickness());
    }
View Full Code Here

    }
    catch (final Exception e)
    {
      // ignore the exception
      final JComponent editorComponent = (JComponent) getComponent();
      editorComponent.setBorder(new LineBorder(Color.red));
      return false;
    }
    return super.stopCellEditing();
  }
View Full Code Here

    final Component listCellRendererComponent = renderer.getListCellRendererComponent
        (new JList(), comboBox.getSelectedItem(), comboBox.getSelectedIndex(), false, comboBox.hasFocus());
    if (listCellRendererComponent instanceof JComponent)
    {
      final JComponent jc = (JComponent) listCellRendererComponent;
      jc.setBorder(new LineBorder(Color.BLACK));
    }
    return listCellRendererComponent;
  }
View Full Code Here

  }

  private JPanel getMutaGen05Pnl() {
    if (mutaGen05Pnl == null) {
      mutaGen05Pnl = new JPanel();
      mutaGen05Pnl.setBorder(new LineBorder(new Color(0, 0, 0)));
      mutaGen05Pnl.setLayout(new BorderLayout(0, 0));
    }
    return mutaGen05Pnl;
  }
View Full Code Here

  }

  private JPanel getMutaGen01Pnl() {
    if (mutaGen01Pnl == null) {
      mutaGen01Pnl = new JPanel();
      mutaGen01Pnl.setBorder(new LineBorder(new Color(0, 0, 0)));
      mutaGen01Pnl.setLayout(new BorderLayout(0, 0));
    }
    return mutaGen01Pnl;
  }
View Full Code Here

  }

  private JPanel getMutaGen03Pnl() {
    if (mutaGen03Pnl == null) {
      mutaGen03Pnl = new JPanel();
      mutaGen03Pnl.setBorder(new LineBorder(new Color(0, 0, 0)));
      mutaGen03Pnl.setLayout(new BorderLayout(0, 0));
    }
    return mutaGen03Pnl;
  }
View Full Code Here

  }

  private JPanel getMutaGen04Pnl() {
    if (mutaGen04Pnl == null) {
      mutaGen04Pnl = new JPanel();
      mutaGen04Pnl.setBorder(new LineBorder(new Color(0, 0, 0)));
      mutaGen04Pnl.setLayout(new BorderLayout(0, 0));
    }
    return mutaGen04Pnl;
  }
View Full Code Here

  }

  private JPanel getMutaGen06Pnl() {
    if (mutaGen06Pnl == null) {
      mutaGen06Pnl = new JPanel();
      mutaGen06Pnl.setBorder(new LineBorder(new Color(0, 0, 0)));
      mutaGen06Pnl.setLayout(new BorderLayout(0, 0));
    }
    return mutaGen06Pnl;
  }
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.