textField.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); textField.setText(configManager.getConfiguration(cd.getGroup().value(), cid.getItem().keyName()));
@Override public void focusLost(FocusEvent e) { editor.setBorder(noFocusBorder); } });
editor.setBorder(new BasicBorders.MarginBorder());
protected JTextComponent getTextField(){ if( textField!=null )return textField; textField = new JTextField(); textField.setBorder(new EmptyBorder(0,0,0,0)); return textField; } //</editor-fold>
private JTextComponent getNoteArea() { if (noteArea == null) { noteArea = new JTextArea(); noteArea.setBorder(BorderFactory.createLineBorder(Color.black)); } return noteArea; }
private void setTextComponent(JTextComponent textComponent) { _textComponent = textComponent; if (_textComponent instanceof JTextArea) { _textComponent.setBorder(null); _component = new JScrollPane(_textComponent); nameComponent(textComponent, "ScrollPane"); } else { _component = _textComponent; } }
@Override public void focusGained(FocusEvent e) { editor.setBorder(focusBorder); ItemUI parent = (ItemUI) LocalizedItemUI.this.getParent().getParent(); parent.focus(LocalizedItemUI.this); }
@Override protected void uninstallDefaults() { getComponent().setBorder(null); super.uninstallDefaults(); }
public void focusLost(FocusEvent e) { if (getComponent() != null) { if (orgBorder instanceof UIResource) { getComponent().setBorder(orgBorder); } getComponent().invalidate(); getComponent().repaint(); } } };
public void focusLost(FocusEvent e) { if (getComponent() != null) { if (orgBorder instanceof UIResource) { getComponent().setBorder(orgBorder); } getComponent().invalidate(); getComponent().repaint(); } } };
public void focusLost(FocusEvent e) { if (getComponent() != null) { if (orgBorder instanceof UIResource) { getComponent().setBorder(orgBorder); getComponent().invalidate(); getComponent().repaint(); } } } };
public void focusLost(FocusEvent e) { if (getComponent() != null) { if (orgBorder instanceof UIResource) { getComponent().setBorder(orgBorder); } getComponent().invalidate(); getComponent().repaint(); } } };
public void focusLost(FocusEvent e) { if (getComponent() != null) { if (orgBorder instanceof UIResource) { getComponent().setBorder(orgBorder); } getComponent().invalidate(); getComponent().repaint(); } } };
public static void configuraWebLaf(JTextComponent field) { if (!WeblafUtils.weblafEstaInstalado()) { return; } // ((WebTextAreaUI) field.getUI()).setDrawBorder(false); // ((WebTextAreaUI) field.getUI()).setDrawBackground(true); field.setBorder(new EmptyBorder(15,15,15,15)); field.setOpaque(true); field.setBackground(ColorController.COR_DESTAQUE); field.setForeground(ColorController.COR_LETRA); } public static void configuraWebLaf(JProgressBar field) {
public void focusGained(FocusEvent e) { if (getComponent() != null) { orgBorder = getComponent().getBorder(); LookAndFeel laf = UIManager.getLookAndFeel(); if (laf instanceof AbstractLookAndFeel && orgBorder instanceof UIResource) { Border focusBorder = ((AbstractLookAndFeel)laf).getBorderFactory().getFocusFrameBorder(); getComponent().setBorder(focusBorder); } getComponent().invalidate(); getComponent().repaint(); } }
public void focusGained(FocusEvent e) { if (getComponent() != null) { orgBorder = getComponent().getBorder(); LookAndFeel laf = UIManager.getLookAndFeel(); if (laf instanceof AbstractLookAndFeel && orgBorder instanceof UIResource) { Border focusBorder = ((AbstractLookAndFeel)laf).getBorderFactory().getFocusFrameBorder(); getComponent().setBorder(focusBorder); } getComponent().invalidate(); getComponent().repaint(); } }
public void focusGained(FocusEvent e) { if (getComponent() != null) { orgBorder = getComponent().getBorder(); LookAndFeel laf = UIManager.getLookAndFeel(); if (laf instanceof AbstractLookAndFeel && orgBorder instanceof UIResource) { Border focusBorder = ((AbstractLookAndFeel)laf).getBorderFactory().getFocusFrameBorder(); getComponent().setBorder(focusBorder); } getComponent().invalidate(); getComponent().repaint(); } }
public void focusGained(FocusEvent e) { if (getComponent() != null) { orgBorder = getComponent().getBorder(); LookAndFeel laf = UIManager.getLookAndFeel(); if (laf instanceof AbstractLookAndFeel && orgBorder instanceof UIResource) { Border focusBorder = ((AbstractLookAndFeel)laf).getBorderFactory().getFocusFrameBorder(); getComponent().setBorder(focusBorder); } getComponent().invalidate(); getComponent().repaint(); } }
public void focusGained(FocusEvent e) { if (getComponent() != null) { orgBorder = getComponent().getBorder(); LookAndFeel laf = UIManager.getLookAndFeel(); if (laf instanceof AbstractLookAndFeel && orgBorder instanceof UIResource) { Border focusBorder = ((AbstractLookAndFeel) laf).getBorderFactory().getFocusFrameBorder(); getComponent().setBorder(focusBorder); } getComponent().invalidate(); getComponent().repaint(); } }
private void installMyDefaults() { this.activeBackground = UIManager.getColor("TextField.selectionBackground"); this.activeForeground = UIManager.getColor("TextField.selectionForeground"); this.inactiveBackground = UIManager.getColor("TextField.inactiveBackground"); this.inactiveForeground = UIManager.getColor("TextField.inactiveForeground"); getComponent().setFont(MaterialFonts.REGULAR); getComponent().setSelectionColor(getComponent().hasFocus() && getComponent().isEnabled() ? activeBackground : inactiveBackground); getComponent().setSelectedTextColor(getComponent().hasFocus() && getComponent().isEnabled() ? activeForeground : inactiveForeground); getComponent().setForeground(getComponent().hasFocus() && getComponent().isEnabled() ? activeForeground : inactiveForeground); getComponent().setBorder(BorderFactory.createEmptyBorder(3, 5, 2,5)); } @Override