Java 8 BevelBorder - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 BevelBorder class.

This code example shows how to use the following methods:
    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();
 
        buf1.append("Alloc Memory: ");
        buf2.append(" Used Memory: ");
        buf3.append("Percent Used: ");
    } 
 
    public void componentResized(ComponentEvent e) {
        int width = getWidth() - BAR_WIDTH;
 
4
CodeRank
This code example shows how to use the following methods:
    private float memoryCapacity;
    private int percentTCM;
 
    private static final Color BACKGROUND = new Color(180, 180, 220);
    private static final Color LIGHT_BLUE = new Color(200, 200, 230);
    private static final BevelBorder BEVEL_BORDER = new BevelBorder(BevelBorder.LOWERED);
 
 
    /** 
     * Default constructor 
     */ 
    public TCInfo() { 
        setLayout( new FlowLayout(FlowLayout.LEFT, 10, 1));
 
        // controller for tile cache memory capacity 
        JPanel p1 = new JPanel();
        p1.setLayout( new BorderLayout() );
        p1.setBackground(LIGHT_BLUE);
 
        // use initial arbitrary values (adjusted later) 
4
CodeRank
This code example shows how to use the following methods:
This code example shows how to use the following methods:
        mValued.setSelected (null != value);
        mValued.addActionListener (this);
 
        // add the value pattern 
        mAttributeValue = new JTextArea (2, 20);
        mAttributeValue.setBorder (new BevelBorder (BevelBorder.LOWERED));
        add (mAttributeValue);
        if (null != value)
            mAttributeValue.setText (value);
        else 
            mAttributeValue.setVisible (false);
        mAttributeValue.getDocument ().addDocumentListener (this);
    } 
 
    // 
    // local methods 
    // 
 
    /** 
     * Add the attribute names from the node to the set of attribute names. 
4
CodeRank
This code example shows how to use the following methods:
    public void init(JPanel mainPanel, GridBagConstraints labelConstraints, GridBagConstraints editConstraints)
    { 
        addToPanel(mainPanel, labelConstraints, 0, 3, new JLabel("Column K/V(eg: Name:Value): ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 3, NAME_AND_VALUE = new JTextArea());
        NAME_AND_VALUE.setRows(10);
        NAME_AND_VALUE.setBorder(new BevelBorder(BevelBorder.LOWERED));
        addToPanel(mainPanel, labelConstraints, 0, 4, new JLabel("Column Serializer: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 4, CSERIALIZER = new JComboBox(AbstractSampler.getSerializerNames().toArray()));
        addToPanel(mainPanel, labelConstraints, 0, 5, new JLabel("Value Serializer: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 5, VSERIALIZER = new JComboBox(AbstractSampler.getSerializerNames().toArray()));
        addToPanel(mainPanel, labelConstraints, 0, 6, new JLabel("Counter: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 6, IS_COUNTER = new JCheckBox());
    } 
 
    @Override 
    public String getLable()
    { 
        return LABEL;
    } 
} 
3
CodeRank
This code example shows how to use the following methods:
     */ 
    public JStatusBar () { 
        _message = new JLabel("");
        add(_message);
 
        _messageBorder = new BevelBorder(BevelBorder.LOWERED);
        _message.setBorder(_messageBorder);
 
        // ??!?!? How do you make a 1-pixel width border??? 
        // System.out.println(_messageBorder.getBorderInsets(_message)); 
 
        _progress = new JProgressBar();
        _progress.setMinimum(0);
        _progress.setMaximum(100);
        _progress.setValue(00);
        add(_progress);
 
    } 
 
    /** Return the progress bar associated with this status bar 
4
CodeRank
This code example shows how to use the following methods:
This code example shows how to use the following methods:
            //? WindowsTableHeaderUI.IconBorder is not accessible: check it visually 
            //- XPStyle.XPEmptyBorder is not accessible: check it visually 
            //- XPStyle.XPFillBorder is not accessible: check it visually 
            //- XPStyle.XPImageBorder is not accessible: check it visually 
 
            new BevelBorder(BevelBorder.RAISED),
            new CompoundBorder(),
            new EmptyBorder(1, 2, 3, 4),
            new EtchedBorder(),
            new LineBorder(Color.BLACK, 2, true),
            new MatteBorder(1, 2, 3, 4, Color.BLACK),
            new SoftBevelBorder(BevelBorder.LOWERED),
            new TitledBorder("4856008"),
 
            new BorderUIResource(new EmptyBorder(1, 2, 3, 4)),
 
            new BasicBorders.ButtonBorder(Color.CYAN, Color.MAGENTA, Color.YELLOW, Color.BLACK),
            new BasicBorders.FieldBorder(Color.CYAN, Color.MAGENTA, Color.YELLOW, Color.BLACK),
            new BasicBorders.MarginBorder(),
            new BasicBorders.MenuBarBorder(Color.BLACK, Color.WHITE),
4
CodeRank
This code example shows how to use the following methods:
	    public SpreadSheetPopupMenu(SpreadSheet spreadSheet) {
	        super(); 
	        this.spreadSheet=spreadSheet;
 
	        //setLabel(""); 
	        setBorder(new BevelBorder(BevelBorder.RAISED));
 
	        final SpreadSheet sp=spreadSheet;
			AbstractAction action;
 
			//Normal spreadsheet 
			//NodeListTransferHandler.registerWith(this); 
			String[] actions=spreadSheet.getActionList();
			if (actions!=null)
			for (int i=0;i<actions.length;i++){
				add(spreadSheet.prepareAction(actions[i]),getMenuAction(actions[i]));
			} 
			addPopupMenuListener(this);
		} 
 
3
CodeRank
This code example shows how to use the following methods:
 	 
	private static final long serialVersionUID = 7005634601532410299L;
 
	public UITableHeaderRenderer() { 
    	super(); 
        setBorder(new BevelBorder(BevelBorder.RAISED));
        setHorizontalAlignment(SwingConstants.CENTER);
	} 
 
    public Component getTableCellRendererComponent(JTable table, Object value,
                  boolean isSelected, boolean hasFocus, int row, int column) {
 
    	Font font = getFont();
    	 
		int selectedcolumn = ((TableSorter)table.getModel()).getSelectedColumn();		
		if (selectedcolumn == column) {
			setFont(new Font(font.getName(), Font.BOLD, font.getSize()));
			setForeground(IUIConstants.DEFAULT_COLOR);
			Object model = table.getModel();
			if (model instanceof TableSorter) { 
3
CodeRank
See Code Examples for Java 8 BevelBorder Methods: