@Override protected void installDefaults() { super.installDefaults(); JTextComponent editor = getComponent(); editor.setFont(RTextAreaBase.getDefaultFont()); // Nimbus (and possibly other Synth lafs) doesn't play by BasicLaf // rules and doesn't set properties needed by custom BasicTextAreaUI's. correctNimbusDefaultProblems(editor); editor.setTransferHandler(DEFAULT_TRANSFER_HANDLER); }
@Override protected void installDefaults() { super.installDefaults(); // support for per-window skins SwingUtilities.invokeLater(new Runnable() { @Override public void run() { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (textArea == null) return; Color foregr = textArea.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textArea .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textArea) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textArea)))); } } }); }
@Override protected void installDefaults() { super.installDefaults(); // support for per-window skins SwingUtilities.invokeLater(new Runnable() { @Override public void run() { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (textArea == null) return; Color foregr = textArea.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textArea .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textArea) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textArea)))); } } }); }
public void installDefaults() { super.installDefaults(); updateBackground(); }
protected void installDefaults() { super.installDefaults(); JTextComponent editor = getComponent(); // Nimbus (and possibly other Synth lafs) doesn't play by BasicLaf // rules and doesn't set properties needed by custom BasicTextAreaUI's. correctNimbusDefaultProblems(editor); editor.setTransferHandler(defaultTransferHandler); }
protected void installDefaults() { // Installs the text cursor on the component super.installDefaults(); updateStyle((JTextComponent)getComponent()); getComponent().addFocusListener(this); }
protected void installDefaults() { super.installDefaults(); JTextComponent editor = getComponent(); editor.setFont(RTextAreaBase.getDefaultFont()); // Nimbus (and possibly other Synth lafs) doesn't play by BasicLaf // rules and doesn't set properties needed by custom BasicTextAreaUI's. correctNimbusDefaultProblems(editor); editor.setTransferHandler(defaultTransferHandler); }
@Override protected void installDefaults() { super.installDefaults(); JTextComponent editor = getComponent(); editor.setFont(RTextAreaBase.getDefaultFont()); // Nimbus (and possibly other Synth lafs) doesn't play by BasicLaf // rules and doesn't set properties needed by custom BasicTextAreaUI's. correctNimbusDefaultProblems(editor); editor.setTransferHandler(DEFAULT_TRANSFER_HANDLER); }