Package javax.swing.border

Examples of javax.swing.border.LineBorder


    }
    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 int row,
                                               final int column)
  {
    this.value = null;
    final JComponent editorComponent = (JComponent) getComponent();
    editorComponent.setBorder(new LineBorder(Color.black));

    Class type = table.getColumnClass(column);
    // Since our obligation is to produce a value which is
    // assignable for the required fallbackType it is OK to use the
    // String constructor for columns which are declared
View Full Code Here

        }
        catch (IOException e)
        {

            selectedDirText.setForeground(Color.RED);
            fileEntryPanel.setBorder(new LineBorder(Color.RED));
            infoLabel.setText("<html>"+"Error!"+"</html>");
            infoLabel.setVisible(true);
            if (dialog!=null)
            {
                dialog.invalidate();
View Full Code Here

  setMaximumSize(new Dimension(350, 25));
  setPreferredSize(new Dimension(350, 25));
  setSize(new Dimension(350, 25));
  setDoubleBuffered(true);
  setBackground(COLORS[type]);
  setBorder(new LineBorder(new Color(155, 155, 155)));
   
  check = new JCheckBox();
  check.setSize(35, 25);
  check.setMaximumSize(new Dimension(35, 25));
  check.setMinimumSize(new Dimension(35, 25));
View Full Code Here

        gbc.fill = GridBagConstraints.BOTH;
        sortablePanel.add(sortableLabel, gbc);
        gbc.weightx = 1;
        sortablePanel.add(getTableheader(), gbc);

        getTableheader().setBorder(new LineBorder(Color.BLACK));

        JPanel topPanel = makeNavigationPanel("Class name filter:", filterPanel, sortablePanel, treePanel);
        cardPanel = new JPanel(new CardLayout());
        JPanel waitPanel = new JPanel();
        waitPanel.setLayout(new BoxLayout(waitPanel, BoxLayout.Y_AXIS));
View Full Code Here

        sourceTitlePanel.setBorder(new EmptyBorder(3, 3, 3, 3));
        sourceTitlePanel.add(viewSource, BorderLayout.EAST);
        sourceTitlePanel.add(sourceTitle, BorderLayout.CENTER);

        sourcePanel.setBorder(new LineBorder(Color.GRAY));
        sourcePanel.add(sourceTitlePanel, BorderLayout.NORTH);
        sourcePanel.add(frame.createSourceCodePanel(), BorderLayout.CENTER);
        sourcePanel.add(frame.createSourceSearchPanel(), BorderLayout.SOUTH);
        topSPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, topLeftSPane, sourcePanel);
        topSPane.setOneTouchExpandable(true);
View Full Code Here

 
  public String getJavaCode(Object value, ImportRewrite imports) {
    if(value==null)
      return "null";
    String strBf=imports.addImport("javax.swing.border.LineBorder");
    LineBorder border = (LineBorder)value;
    int thickness = border.getThickness();   
    Color lineColor = border.getLineColor();
    boolean roundedCorners = border.getRoundedCorners();
    StringBuilder builder = new StringBuilder();
    builder.append("new "+strBf+"(");
    builder.append(encodeValue(lineColor, imports));
    builder.append(", ");
    builder.append(encodeValue(thickness, imports));
View Full Code Here

    harness.check(defaults.get("Label.foreground"), new ColorUIResource(0, 0, 27));
   
    harness.checkPoint("List");
    harness.check(defaults.get("List.background"), new ColorUIResource(0, 0, 30));
    harness.check(defaults.get("List.cellRenderer") instanceof ListCellRenderer);
    LineBorder lb = (LineBorder) defaults.getBorder("List.focusCellHighlightBorder");
    harness.check(lb instanceof BorderUIResource.LineBorderUIResource);
    harness.check(lb.getThickness(), 1);
    harness.check(lb.getLineColor(), MetalLookAndFeel.getFocusColor());
    harness.check(defaults.get("List.focusInputMap") instanceof InputMapUIResource);
    harness.check(defaults.get("List.focusInputMap.RightToLeft") instanceof InputMapUIResource);
    harness.check(defaults.get("List.font"), new FontUIResource("Dialog", Font.PLAIN, 13));
    harness.check(defaults.get("List.foreground"), new ColorUIResource(0, 0, 29));
    harness.check(defaults.get("List.selectionBackground"), new ColorUIResource(0, 0, 28));
View Full Code Here

    harness.check(border.isBorderOpaque(), false);
   
    border = new CompoundBorder(new TitledBorder(""), null);
    harness.check(border.isBorderOpaque(), false);
   
    border = new CompoundBorder(new LineBorder(Color.red, 33, false), null);
    harness.check(border.isBorderOpaque(), true);
    harness.check(border.getInsideBorder() == null);
    harness.check(border.getOutsideBorder().isBorderOpaque(), true);
   
    border = new CompoundBorder(null, new LineBorder(Color.red, 33, false));
    harness.check(border.isBorderOpaque(), true);
    harness.check(border.getInsideBorder().isBorderOpaque(), true);
    harness.check(border.getOutsideBorder() == null);
   
    border = new CompoundBorder(new LineBorder(Color.red, 33, false),
                                new LineBorder(Color.red, 33, false));
    harness.check(border.isBorderOpaque(), true);
    harness.check(border.getInsideBorder().isBorderOpaque(), true);
    harness.check(border.getOutsideBorder().isBorderOpaque(), true);
   
    border = new CompoundBorder(new LineBorder(Color.red, 33, true), null);
    harness.check(border.isBorderOpaque(), false);
    harness.check(border.getInsideBorder() == null);
    harness.check(border.getOutsideBorder().isBorderOpaque(), false);
   
    border = new CompoundBorder(null, new LineBorder(Color.red, 33, true));
    harness.check(border.isBorderOpaque(), false);
    harness.check(border.getInsideBorder().isBorderOpaque(), false);
    harness.check(border.getOutsideBorder() == null);
   
    border = new CompoundBorder(new LineBorder(Color.red, 33, true),
                                new LineBorder(Color.red, 33, true));
    harness.check(border.isBorderOpaque(), false);
    harness.check(border.getInsideBorder().isBorderOpaque(), false);
    harness.check(border.getOutsideBorder().isBorderOpaque(), false);
   
  }
View Full Code Here

        Arrange.values()[0]);

    this.panel = new ContainerPanel(this, gw, panel, this.recursiveOperatorGraph, parent, this.visualRifEditor);

    // Border
    final LineBorder lineBorder = new LineBorder(bgColor,5);
    TitledBorder titled;
    final Font font = new Font(Font.SANS_SERIF, Font.BOLD, 20);
    titled = BorderFactory.createTitledBorder(lineBorder," "+title+" ", 0, 0, font, Color.BLACK);
    this.panel.setBorder(titled);
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.