tip1Null.setBorderPainted(true); tip1Null.setFocusPainted(false); tip1Null.setBorder(compound);
super(i / N + "," + i % N); this.setOpaque(true); this.setBorderPainted(false); if ((i / N + i % N) % 2 == 1) { this.setBackground(Color.gray);
editorComponent.setBorderPainted(false); editorComponent.setContentAreaFilled( false );
@Override public void mouseEntered (MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(true); } }
@Override public void mouseExited (MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(false); } } };
public void mouseExited(MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(false); } } };
public void mouseExited(MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(false); } } };
public void mouseEntered(MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(true); } }
public void mouseEntered(MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(true); } }
public void mouseEntered(MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(true); } }
public void mouseEntered(MouseEvent e) { Component component = e.getComponent(); if (component instanceof AbstractButton) { AbstractButton button = (AbstractButton) component; button.setBorderPainted(true); } }
/** * Adds a button to this enabler. * * @param button the button. */ public void addButton(final AbstractButton button) { button.addMouseListener(this); button.setBorderPainted(false); }
/** * Removes a button from the enabler. * * @param button the button. */ public void removeButton(final AbstractButton button) { button.addMouseListener(this); button.setBorderPainted(true); }
public void mouseEntered(MouseEvent e) { AbstractButton btn = (AbstractButton) e.getSource(); if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) == 0) { if(rolloverBorderPainted) { btn.setBorderPainted(true); } if(rolloverContentAreaFilled) { btn.setContentAreaFilled(true); } } }
protected void uninstallDefaults() { LookAndFeel.uninstallBorder(menuItem); menuItem.setBorderPainted(oldBorderPainted); if(menuItem.getMargin() instanceof UIResource) menuItem.setMargin(null); if(arrowIcon instanceof UIResource) arrowIcon = null; if(checkIcon instanceof UIResource) checkIcon = null; }
/** * {@inheritDoc}<p> * * Here: set's the buttons horizontal alignment and borderpainted properties * to this provider's properties. */ @Override protected void configureState(CellContext context) { rendererComponent.setBorderPainted(isBorderPainted()); rendererComponent.setHorizontalAlignment(getHorizontalAlignment()); }
@Override protected void setBorderToNormal(Component c) { if (c instanceof AbstractButton) { AbstractButton b = (AbstractButton) c; b.setBorderPainted(true); b.setContentAreaFilled(true); b.setRolloverEnabled(false); uninstallListener(b); } }
protected void setBorderToRollover(Component c) { if (c instanceof AbstractButton) { ((AbstractButton) c).setBorderPainted(false); ((AbstractButton) c).setBorder(BorderFactory.createEmptyBorder()); ((AbstractButton) c).setContentAreaFilled(false); ((AbstractButton) c).setOpaque(false); } if (c instanceof JComponent) { ((JComponent) c).setOpaque(false); } }
/** * {@inheritDoc}<p> * * Here: set's the buttons horizontal alignment and borderpainted properties * to this provider's properties. */ @Override protected void configureState(CellContext context) { rendererComponent.setBorderPainted(isBorderPainted()); rendererComponent.setHorizontalAlignment(getHorizontalAlignment()); }
private void configureButton(AbstractButton b) { b.setBorderPainted(false); b.setContentAreaFilled(false); b.setRolloverEnabled(true); installListener(b); }