Java Code Examples for javax.swing.plaf.ViewportUI

The following examples show how to use javax.swing.plaf.ViewportUI. These examples are extracted from open source projects. 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 Project: netbeans   Source File: PSheet.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Find the MarginViewportUI owned by the scrollpane, to set up
 * colors, margin, empty string */
private MarginViewportUI findMVUI() {
    MarginViewportUI result = null;
    JScrollPane pane = findScrollPane();

    if (pane != null) {
        ViewportUI ui = pane.getViewport().getUI();

        if (ui instanceof MarginViewportUI) {
            result = (MarginViewportUI) ui;
        } else {
            //L&F changed or something such
            result = (MarginViewportUI) MarginViewportUI.createUI(pane.getViewport());
            pane.getViewport().setUI(result);
        }
    }

    return result;
}
 
Example 2
Source Project: jdk1.8-source-analysis   Source File: JViewport.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Returns the L&F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 3
Source Project: jdk1.8-source-analysis   Source File: JViewport.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 4
Source Project: jdk1.8-source-analysis   Source File: JViewport.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 5
Source Project: dragonwell8_jdk   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 6
Source Project: dragonwell8_jdk   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 7
Source Project: dragonwell8_jdk   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 8
Source Project: TencentKona-8   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 9
Source Project: TencentKona-8   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 10
Source Project: TencentKona-8   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 11
Source Project: jdk8u60   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 12
Source Project: jdk8u60   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 13
Source Project: jdk8u60   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 14
Source Project: JDKSourceCode1.8   Source File: JViewport.java    License: MIT License 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 15
Source Project: JDKSourceCode1.8   Source File: JViewport.java    License: MIT License 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 16
Source Project: JDKSourceCode1.8   Source File: JViewport.java    License: MIT License 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 17
Source Project: openjdk-jdk8u   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 18
Source Project: openjdk-jdk8u   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 19
Source Project: openjdk-jdk8u   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 20
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 21
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 22
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 23
Source Project: Bytecoder   Source File: JViewport.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 24
Source Project: Bytecoder   Source File: JViewport.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @since 1.3
 */
@BeanProperty(hidden = true, visualUpdate = true, description
        = "The UI object that implements the Component's LookAndFeel.")
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 25
Source Project: Bytecoder   Source File: JViewport.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 26
Source Project: openjdk-jdk9   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 27
Source Project: openjdk-jdk9   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @since 1.3
 */
@BeanProperty(hidden = true, visualUpdate = true, description
        = "The UI object that implements the Component's LookAndFeel.")
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
Example 28
Source Project: openjdk-jdk9   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
Example 29
Source Project: jdk8u-jdk   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
Example 30
Source Project: jdk8u-jdk   Source File: JViewport.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}