Package javax.swing.border

Examples of javax.swing.border.LineBorder


  }

  private static JComponent createTextArea(String s)
  {
    JTextArea ta = new JTextArea("\n\n    " + s, 6, 20);
    ta.setBorder(new LineBorder(new Color(200, 200, 200)));
    ta.setFont(new Font("Helvetica", Font.BOLD, 20));
    ta.setMinimumSize(new Dimension(20, 20));
    ta.setFocusable(false);
    return ta;
  }
View Full Code Here


        map.put(GraphConstants.BACKGROUND, Color.white);
      if (modelGraph.isExcused())
        map.put(GraphConstants.GRADIENTCOLOR, Color.gray);
      map.put(GraphConstants.HORIZONTAL_ALIGNMENT, SwingConstants.LEFT);
      map.put(GraphConstants.VERTICAL_ALIGNMENT, SwingConstants.TOP);
      map.put(GraphConstants.BORDER, new LineBorder(modelGraph.getModel()
          .getColor(), 1));
      jgraph.getGraphLayoutCache().toBack(new Object[] { modelCell });
      nested.put(modelCell, map);
      return modelCell;
    }
View Full Code Here

  public BottomPane() {

    // 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);
View Full Code Here

  public TablePane(){
    listener = new TableListener(this);
   
    hiddenCols = new Vector<Integer>();
    setBackground(Color.WHITE);
    LineBorder line1 = new LineBorder(Color.WHITE,10);
    setBorder(line1);
   
    setLayout(new BoxLayout(this,BoxLayout.PAGE_AXIS));
   
    this.setBlank();
View Full Code Here

    Dimension size = new Dimension(GuiParams.DEFAULT_CELL_WIDTH,
        GuiParams.DEFAULT_CELL_HEIGHT);
    setMinimumSize(size);
    setMaximumSize(size);
    setPreferredSize(size);
    setBorder(new LineBorder(Color.LIGHT_GRAY, 1));

    text = new JLabel("");
    Font f = new Font("san-sarif", Font.PLAIN, 10);
    text.setFont(f);
    this.add(text, BorderLayout.CENTER);
View Full Code Here

    paneSize.width = GuiParams.WINDOW_WIDTH;
    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);
View Full Code Here

        commentLabel = new JLabel(i18n.COMMENT_LABEL);
        commentLabel.setBorder(border);
        pane.add(commentLabel, getLabelConstraints(c));               
       
        commentTextArea = new JTextArea();
        commentTextArea.setBorder(new LineBorder(Color.DARK_GRAY, 1));
        commentTextArea.setLineWrap(true);
        c = getFieldConstraints(c);
        c.weightx = 2;
        c.weighty = 2;
        c.fill = GridBagConstraints.BOTH;
View Full Code Here

         public void setHideScrollBars(boolean b)
         {
         }
      };
     
      setBorder(new LineBorder(Color.BLACK));
   }
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

    label.setBounds(margin, 170, headerWidth, 14);
    contentPane.add(label);

    String[] data = {"Alice", "Bob", "Eve"};
    demo_form_who = new JList(data);
    demo_form_who.setBorder(new LineBorder(Color.BLACK));
    demo_form_who.setBounds(headerWidth + margin, 169, 87, 65);
    contentPane.add(demo_form_who);

    // Hidden
    label = new JLabel("Hidden");
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.