javax.swing.plaf.LabelUI Java Examples
The following examples show how to use
javax.swing.plaf.LabelUI.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JLabel.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI */ @BeanProperty(hidden = true, visualUpdate = true, description = "The UI object that implements the Component's LookAndFeel.") public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #2
Source File: JLabel.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI */ @BeanProperty(hidden = true, visualUpdate = true, description = "The UI object that implements the Component's LookAndFeel.") public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #3
Source File: JLabelOperator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Maps {@code JLabel.getUI()} through queue */ public LabelUI getUI() { return (runMapping(new MapAction<LabelUI>("getUI") { @Override public LabelUI map() { return ((JLabel) getSource()).getUI(); } })); }
Example #4
Source File: JLabelOperator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Maps {@code JLabel.setUI(LabelUI)} through queue */ public void setUI(final LabelUI labelUI) { runMapping(new MapVoidAction("setUI") { @Override public void map() { ((JLabel) getSource()).setUI(labelUI); } }); }
Example #5
Source File: LabelRenderer.java From netbeans with Apache License 2.0 | 4 votes |
public void setUI(LabelUI ui) { super.setUI(UI); }
Example #6
Source File: LabelRenderer.java From netbeans with Apache License 2.0 | 4 votes |
public void setUI(LabelUI ui) { super.setUI(UI); }
Example #7
Source File: CleanComboUI.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { ListCellRenderer renderer = comboBox.getRenderer(); //Fix for an obscure condition when renderer may be null - //can't figure how this can happen unless the combo box is //painted before installUI() has completed (which is called //by the superclass constructor calling updateUI(). Only //happens when opening an individual Properties window. Maybe //the window is constructed off the AWT thread? if ((listBox == null) || (renderer == null)) { return; } Component c; c = renderer.getListCellRendererComponent(listBox, comboBox.getSelectedItem(), -1, hasFocus && !isPopupVisible(comboBox), false); c.setFont(comboBox.getFont()); c.setForeground(comboBox.isEnabled() ? comboBox.getForeground() : PropUtils.getDisabledForeground()); c.setBackground(comboBox.getBackground()); boolean shouldValidate = false; if (c instanceof JPanel) { shouldValidate = true; } LabelUI origUI = null; if (c instanceof JLabel && isGtk) { // Override L&F's strange background painting origUI = ((JLabel) c).getUI(); ((JLabel) c).setUI(new SolidBackgroundLabelUI()); } currentValuePane.paintComponent( g, c, comboBox, bounds.x, bounds.y, bounds.width, bounds.height, shouldValidate ); if (origUI != null) { ((JLabel) c).setUI(origUI); } }
Example #8
Source File: LabelRenderer.java From visualvm with GNU General Public License v2.0 | 4 votes |
public void setUI(LabelUI ui) { super.setUI(UI); }
Example #9
Source File: LabelRenderer.java From visualvm with GNU General Public License v2.0 | 4 votes |
public void setUI(LabelUI ui) { super.setUI(UI); }
Example #10
Source File: LabelRenderer.java From visualvm with GNU General Public License v2.0 | 4 votes |
public void setUI(LabelUI ui) { super.setUI(UI); }
Example #11
Source File: SimpleXYChartUtils.java From visualvm with GNU General Public License v2.0 | 4 votes |
private static JLabel createRotatedLabel(String text, final LabelUI labelUI) { return new JLabel(text, SwingConstants.CENTER) { public void updateUI() { if (getUI() != labelUI) setUI(labelUI); } }; }
Example #12
Source File: JLabel.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #13
Source File: JLabel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #14
Source File: JLabel.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #15
Source File: JLabel.java From Java8CN with Apache License 2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #16
Source File: JLabel.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #17
Source File: JLabel.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #18
Source File: JLabel.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #19
Source File: JLabel.java From jdk8u_jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #20
Source File: JLabel.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #21
Source File: JLabel.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #22
Source File: JLabel.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #23
Source File: JLabel.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #24
Source File: JLabel.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #25
Source File: JLabel.java From dragonwell8_jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #26
Source File: JLabel.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Sets the L&F object that renders this component. * * @param ui the LabelUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(LabelUI ui) { super.setUI(ui); // disabled icon is generated by LF so it should be unset here if (!disabledIconSet && disabledIcon != null) { setDisabledIcon(null); } }
Example #27
Source File: JLabel.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((LabelUI)UIManager.getUI(this)); }
Example #28
Source File: JLabel.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((LabelUI)UIManager.getUI(this)); }
Example #29
Source File: JLabel.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((LabelUI)UIManager.getUI(this)); }
Example #30
Source File: JLabel.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Returns the L&F object that renders this component. * * @return LabelUI object */ public LabelUI getUI() { return (LabelUI)ui; }