Package javax.swing.border

Examples of javax.swing.border.MatteBorder


  public ManagedThreadPane(final DebuggerHandler dbhandler, final Thread thread, final Thread starter) {
    this.thread = thread;
    this.dbhandler = dbhandler;
    setPreferredSize(new Dimension(0,height));
    setMaximumSize(new Dimension(Short.MAX_VALUE, height));
    setBorder(new MatteBorder(0, 0, 1, 0, new Color(0xffdddddd)));
    setBackground(Color.WHITE);
    setOpaque(true);
   
    line1 = new JPanel();
    line2 = new JPanel();
View Full Code Here


        RowSpec.decode("fill:default"),
        FormFactory.RELATED_GAP_ROWSPEC,
        FormFactory.DEFAULT_ROWSPEC,}));
   
    JPanel panel = new JPanel();
    panel.setBorder(new MatteBorder(0, 0, 1, 0, (Color) new Color(0, 0, 0)));
    panel.setBackground(Color.WHITE);
    add(panel, "1, 1, 8, 2, fill, fill");
    panel.setLayout(new FormLayout(new ColumnSpec[] {
        FormFactory.RELATED_GAP_COLSPEC,
        ColumnSpec.decode("default:grow"),},
View Full Code Here

  void createViewer(final ExternalResource model, final NodeView view) {
    final JComponent viewer = createViewer(view.getMap().getModel(), model);
    if (imagePopupMenu == null) {
      imagePopupMenu = new ExternalImagePopupMenu();
    }
    viewer.setBorder(new MatteBorder(BORDER_SIZE, BORDER_SIZE, BORDER_SIZE, BORDER_SIZE, BORDER_COLOR));
    final Set<NodeView> viewers = model.getViewers();
    viewers.add(view);
    viewer.setBounds(viewer.getX() - 5, viewer.getY() - 5, viewer.getWidth() + 15, viewer.getHeight() + 15);
    view.addContent(viewer, VIEWER_POSITION);
    if(view.getMap().getModeController().canEdit()){
View Full Code Here

        RowSpec.decode("fill:default"),
        FormFactory.RELATED_GAP_ROWSPEC,
        RowSpec.decode("fill:default"),}));
   
    JPanel panel = new JPanel();
    panel.setBorder(new MatteBorder(0, 0, 1, 0, (Color) new Color(0, 0, 0)));
    panel.setBackground(Color.WHITE);
    add(panel, "1, 1, 8, 2, fill, fill");
    panel.setLayout(new FormLayout(new ColumnSpec[] {
        FormFactory.RELATED_GAP_COLSPEC,
        ColumnSpec.decode("default:grow"),},
View Full Code Here

    mapView.scrollNodeToVisible(nodeView);
    assert( parent.isValid());
    final int nodeWidth = parent.getWidth();
    final int nodeHeight = parent.getHeight();
    final Dimension textFieldSize;
    textfield.setBorder(new MatteBorder(2, 2, 2, 2, nodeView.getSelectedColor()));
    textFieldSize = textfield.getPreferredSize();
    textFieldSize.width += 1;
        if(textFieldSize.width < extraWidth)
            textFieldSize.width = extraWidth;
        if(textFieldSize.width < 10)
View Full Code Here

  protected final JFileChooser fc;

  public BitmapImagePreview(final JFileChooser fc) {
    super();
    this.fc = fc;
    setBorder(new MatteBorder(BORDER_WIDTH, BORDER_WIDTH, BORDER_WIDTH, BORDER_WIDTH, Color.BLACK));
    final int previewSize = ResourceController.getResourceController().getIntProperty("image_preview_size", 300);
    setPreferredSize(new Dimension(previewSize, previewSize));
    fc.addPropertyChangeListener(this);
  }
View Full Code Here

  }
 
  public static DayRenderer holidayRenderer()
  {
    DefaultDayRenderer renderer = new DefaultDayRenderer();
    renderer.setBorder(new MatteBorder(new Insets(1, 1, 1, 1), SystemColor.control));
    return renderer;
  }
View Full Code Here

//        }
//        p.y += 20; // 20 puntitos extra de separacion.
       
        JLabel lbl = new JLabel(AppLocal.getIntString(KeyText));
        lbl.applyComponentOrientation(menu.getComponentOrientation());
        lbl.setBorder(new MatteBorder(new Insets(0, 0, 1, 0), new Color(0, 0, 0)));
//        lbl.setSize(670, 20);
//        lbl.setLocation(p);
//        p.y += 35;
//        comp.add(lbl); 
       
View Full Code Here

      setFont(UIManager.getFont("Label.font"));
//      setForeground(new Color(206,206,229));
      setForeground(Color.black);
      image = new ImageIcon(getClass().getResource(
          "/images/about.jpg"));
      setBorder(new MatteBorder(1, 1, 1, 1, Color.black));

      text = new Vector(50);
      StringTokenizer st = new StringTokenizer(
          jEdit.getProperty("lazy8ledger.about.text"), "\n");
      while (st.hasMoreTokens()) {
View Full Code Here

*
* @author Sergey A. Malenkov
*/
final class javax_swing_border_MatteBorder_PersistenceDelegate extends PersistenceDelegate {
    protected Expression instantiate(Object oldInstance, Encoder out) {
        MatteBorder border = (MatteBorder) oldInstance;
        Insets insets = border.getBorderInsets();
        Object object = border.getTileIcon();
        if (object == null) {
            object = border.getMatteColor();
        }
        Object[] args = new Object[] {
                insets.top,
                insets.left,
                insets.bottom,
                insets.right,
                object,
        };
        return new Expression(border, border.getClass(), "new", args);
    }
View Full Code Here

TOP

Related Classes of javax.swing.border.MatteBorder

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.