/** Get the width required by the custom editor button (this varies with * font size). */ static int getCustomButtonWidth() { Icon ic = getCustomButtonIcon(); return ic.getIconWidth() + (isAqua ? 5 : 3); }
/** Get the width required by the custom editor button (this varies with * font size). */ static int getCustomButtonWidth() { Icon ic = getCustomButtonIcon(); return ic.getIconWidth() + (isAqua ? 5 : 3); }
/** Get the width required by the custom editor button (this varies with * font size). */ static int getCustomButtonWidth() { Icon ic = getCustomButtonIcon(); return ic.getIconWidth() + (isAqua ? 5 : 3); }
/** Creates a new instance of CustomEditorAction */ public CustomEditorAction(Invoker invoker) { this.invoker = invoker; putValue(SMALL_ICON, PropUtils.getCustomButtonIcon()); }
/** Creates a new instance of CustomEditorAction */ public CustomEditorAction(Invoker invoker) { this.invoker = invoker; putValue(SMALL_ICON, PropUtils.getCustomButtonIcon()); }
/** Creates a new instance of CustomEditorAction */ public CustomEditorAction(Invoker invoker) { this.invoker = invoker; putValue(SMALL_ICON, PropUtils.getCustomButtonIcon()); }
void setButtonAction (Action a) { button.setAction (a); button.setIcon(PropUtils.getCustomButtonIcon()); button.setRolloverIcon(PropUtils.getCustomButtonIcon()); }
void setButtonAction(Action a) { button.setAction(a); button.setIcon(PropUtils.getCustomButtonIcon()); button.setRolloverIcon(PropUtils.getCustomButtonIcon()); }
void setButtonAction (Action a) { button.setAction (a); button.setIcon(PropUtils.getCustomButtonIcon()); button.setRolloverIcon(PropUtils.getCustomButtonIcon()); }
private void createButton() { button = new ConditionallyFocusableButton(); int buttonWidth = PropUtils.getCustomButtonWidth(); button.setBounds(getWidth() - buttonWidth, 0, buttonWidth, getHeight()); button.setIcon(PropUtils.getCustomButtonIcon()); button.setRolloverIcon(PropUtils.getCustomButtonIcon()); button.setMargin(null); button.setName("Custom editor button - editor instance"); //NOI18N button.setText(null); //undocumented (?) call to hide action text - see JButton line 234 button.putClientProperty("hideActionText", Boolean.TRUE); //NOI18N //Don't allow button to receive focus - otherwise it can when it's //removed // button.setFocusable(false); add(button); //setFocusable(false); }
private void createButton() { button = new ConditionallyFocusableButton(); int buttonWidth = PropUtils.getCustomButtonWidth(); button.setBounds (getWidth() - buttonWidth, 0, buttonWidth, getHeight()); button.setIcon (PropUtils.getCustomButtonIcon()); button.setRolloverIcon(PropUtils.getCustomButtonIcon()); button.setMargin (null); button.setName ("Custom editor button - editor instance");//NOI18N button.setText(null); //undocumented (?) call to hide action text - see JButton line 234 button.putClientProperty ("hideActionText", Boolean.TRUE); //NOI18N //Don't allow button to receive focus - otherwise it can when it's //removed // button.setFocusable(false); add (button); //setFocusable(false); }
private void createButton() { button = new ConditionallyFocusableButton(); int buttonWidth = PropUtils.getCustomButtonWidth(); button.setBounds (getWidth() - buttonWidth, 0, buttonWidth, getHeight()); button.setIcon (PropUtils.getCustomButtonIcon()); button.setRolloverIcon(PropUtils.getCustomButtonIcon()); button.setMargin (null); button.setName ("Custom editor button - editor instance");//NOI18N button.setText(null); //undocumented (?) call to hide action text - see JButton line 234 button.putClientProperty ("hideActionText", Boolean.TRUE); //NOI18N //Don't allow button to receive focus - otherwise it can when it's //removed // button.setFocusable(false); add (button); //setFocusable(false); }