/** * 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; }
public ViewportUI getUI() { return null; }
public void setUI(ViewportUI ui) { super.setUI(ui); }
/** * This method resets the UI used to the Look and Feel defaults.. */ public void updateUI() { setUI((ViewportUI) UIManager.getUI(this)); }
public void setUI(final ViewportUI ui) { super.setUI(ui); }
public ViewportUI getUI() { return (ViewportUI)ui; }
@Override public void updateUI() { setUI((ViewportUI)UIManager.getUI(this)); }
/** * Returns the L&F object that renders this component. * * @return a <code>ViewportUI</code> object * @since 1.3 */ public ViewportUI getUI() { return (ViewportUI)ui; }
/** * Sets the L&F object that renders this component. * * @param ui the <code>ViewportUI</code> L&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); }
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((ViewportUI)UIManager.getUI(this)); }
/** * Sets the L&F object that renders this component. * * @param ui the <code>ViewportUI</code> L&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); }
/** * This method returns the viewport's UI delegate. * * @return The viewport's UI delegate. */ public ViewportUI getUI() { return (ViewportUI) ui; }
/** * This method sets the viewport's UI delegate. * * @param ui The viewport's UI delegate. */ public void setUI(ViewportUI ui) { super.setUI(ui); }