Package javax.swing.border

Examples of javax.swing.border.BevelBorder


        if (Debug.debugging("mappanel")) {
            Debug.output("MapPanel: creating MapBean with initial projection "
                    + proj);
        }

        return createMapBean(proj, new BevelBorder(BevelBorder.LOWERED));
    }
View Full Code Here


            g.fillRect(0, 0, getWidth(), getHeight());
            super.paintComponent(g);
          }
        };
      // Use a bevel border 1 pixel wide
      iconLabel.setBorder(new BevelBorder(BevelBorder.LOWERED) {
          @Override
          public Insets getBorderInsets(Component c) {
            return new Insets(1, 1, 1, 1);
          }
         
View Full Code Here

    public DomEcho03()
    {
       // Make a nice border
       EmptyBorder eb = new EmptyBorder(5,5,5,5);
       BevelBorder bb = new BevelBorder(BevelBorder.LOWERED);
       CompoundBorder cb = new CompoundBorder(eb,bb);
       this.setBorder(new CompoundBorder(cb,eb));

       // Set up the tree
       JTree tree = new JTree(new DomToTreeModelAdapter());
View Full Code Here

    public MemoryChart() {
        setBackground(Color.gray);
        setPreferredSize( new Dimension(480, 140) );

        EmptyBorder b2 = new EmptyBorder(10, 10, 10, 10);
        BevelBorder b1 = new BevelBorder(BevelBorder.LOWERED);
        setBorder( new CompoundBorder(b1, b2) );

        addComponentListener(this);

        insets = getInsets();
View Full Code Here

        scrollpane = new JScrollPane(table);
        scrollpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        scrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);

        EmptyBorder empty_border = new EmptyBorder(5, 5, 5, 5);
        BevelBorder bevel_border = new BevelBorder(BevelBorder.LOWERED);

        scrollpane.setBorder( new CompoundBorder(empty_border, bevel_border) );

        // add some initial room for width (arbitrary)
        Dimension dim = new Dimension(scrollpane.getPreferredSize().width + 100,
View Full Code Here

    statusBar.messageHolder.setText(strMessage);
  }

  private void init() {
    // setLayout(new FlowLayout(SwingConstants.RIGHT));
    timeHolder.setBorder(new BevelBorder(BevelBorder.LOWERED));
    messageHolder.setBorder(new BevelBorder(BevelBorder.LOWERED));
    setLayout(new BorderLayout());
    add(timeHolder, BorderLayout.EAST);
    add(messageHolder, BorderLayout.CENTER);
    setBorder(new EtchedBorder());
  }
View Full Code Here

    indexPanel.add(resultField, c);
    indexPanel.add(statusField, c);
   
    JPanel viewPanel = new JPanel();
    viewPanel.setLayout(new GridBagLayout());
    contributionPanel.setBorder(new BevelBorder(BevelBorder.LOWERED));
    c.gridwidth = 1;
    c.weighty = 1.0;
    viewPanel.add(contributionPanel, c);
    statusPanel.setBorder(new BevelBorder(BevelBorder.LOWERED));
    viewPanel.add(statusPanel, c);
    c.weightx = 0.0;
    viewPanel.add(colorOffsetBar, c);
    viewPanel.add(colorFactorBar, c);
   
View Full Code Here

    int leftPaneWidth = leftWindowWidth+middleWindowWidth;
    int frameWidth = leftPaneWidth + rightWindowWidth;
 
    /* Make a nice border */
    EmptyBorder emptyBorder = new EmptyBorder(5,5,5,5);
    BevelBorder bevelBorder = new BevelBorder(BevelBorder.LOWERED);
    CompoundBorder compoundBorder = new CompoundBorder(emptyBorder,bevelBorder);
    mainPanel.setBorder(new CompoundBorder(compoundBorder,emptyBorder));
   
    /* Set up the tree */
    m_leftTreeModelAdapter = new DomToTreeModelAdapter(m_document);
View Full Code Here

        jList = new JList();
        scrollArea = new JScrollPane();
        scrollArea.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
        jList.setVisibleRowCount(5);
        scrollArea.setViewportView(jList);
        scrollArea.setBorder(new BevelBorder(BevelBorder.RAISED));
        jList.addMouseListener(listMouseClicked);
        jList.setCursor(new Cursor(Cursor.HAND_CURSOR));
        addKeyListener(textAreaKeyEvent);
        addFocusListener(this);
        jList.addMouseMotionListener(this);
View Full Code Here

        jLabelCorFundoObjetos.setBackground(pele.getFundoTabelaNaoSelecionada());
        jLabelCorFundoSelecionado.setBackground(pele.getFundoTabelaSelecionada());
        jLabelCorTextoObjetos.setBackground(pele.getFrenteTabelaNaoSelecionada());
        jLabelCorTextoSelecionado.setBackground(pele.getFrenteTabelaSelecionada());
        jLabelCorFundoJanela.setBackground(pele.getFundoJanela());
        jLabelCorFundoJanela.setBorder(new BevelBorder(BevelBorder.LOWERED, ColorUtils.getFrenteJanela(), ColorUtils.getFrenteJanela()));
        jLabelCorTextoJanela.setBackground(pele.getFrenteJanela());
        jLabelCorTextoJanela.setBorder(new BevelBorder(BevelBorder.LOWERED, ColorUtils.getFundoJanela(), ColorUtils.getFundoJanela()));
    }
View Full Code Here

TOP

Related Classes of javax.swing.border.BevelBorder

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.