javax.swing.plaf.OptionPaneUI Java Examples

The following examples show how to use javax.swing.plaf.OptionPaneUI. 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: MultiOptionPaneUI.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #2
Source File: JOptionPane.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the UI object which implements the {@literal L&F} for this component.
 *
 * @param ui  the <code>OptionPaneUI</code> {@literal L&F} object
 * @see UIDefaults#getUI
 */
@BeanProperty(hidden = true, description
        = "The UI object that implements the optionpane's LookAndFeel")
public void setUI(OptionPaneUI ui) {
    if (this.ui != ui) {
        super.setUI(ui);
        invalidate();
    }
}
 
Example #3
Source File: MultiOptionPaneUI.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #4
Source File: JOptionPane.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #5
Source File: MultiOptionPaneUI.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #6
Source File: JOptionPane.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #7
Source File: JOptionPane.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #8
Source File: JOptionPane.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #9
Source File: JOptionPane.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #10
Source File: MultiOptionPaneUI.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #11
Source File: JOptionPane.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #12
Source File: JOptionPane.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #13
Source File: MultiOptionPaneUI.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #14
Source File: JOptionPane.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Sets the UI object which implements the {@literal L&F} for this component.
 *
 * @param ui  the <code>OptionPaneUI</code> {@literal L&F} object
 * @see UIDefaults#getUI
 */
@BeanProperty(hidden = true, description
        = "The UI object that implements the optionpane's LookAndFeel")
public void setUI(OptionPaneUI ui) {
    if (this.ui != ui) {
        super.setUI(ui);
        invalidate();
    }
}
 
Example #15
Source File: JOptionPane.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #16
Source File: MultiOptionPaneUI.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #17
Source File: MultiOptionPaneUI.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #18
Source File: JOptionPane.java    From Java8CN with Apache License 2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #19
Source File: JOptionPane.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #20
Source File: JOptionPane.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #21
Source File: JOptionPane.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #22
Source File: MultiOptionPaneUI.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>containsCustomComponents</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public boolean containsCustomComponents(JOptionPane a) {
    boolean returnValue =
        ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
    for (int i = 1; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
    }
    return returnValue;
}
 
Example #23
Source File: JOptionPane.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #24
Source File: JOptionPane.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Requests that the initial value be selected, which will set
 * focus to the initial value. This method
 * should be invoked after the window containing the option pane
 * is made visible.
 */
public void selectInitialValue() {
    OptionPaneUI         ui = getUI();
    if (ui != null) {
        ui.selectInitialValue(this);
    }
}
 
Example #25
Source File: MultiOptionPaneUI.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Invokes the <code>selectInitialValue</code> method on each UI handled by this object.
 */
public void selectInitialValue(JOptionPane a) {
    for (int i = 0; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).selectInitialValue(a);
    }
}
 
Example #26
Source File: MultiOptionPaneUI.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Invokes the <code>selectInitialValue</code> method on each UI handled by this object.
 */
public void selectInitialValue(JOptionPane a) {
    for (int i = 0; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).selectInitialValue(a);
    }
}
 
Example #27
Source File: MultiOptionPaneUI.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Invokes the <code>selectInitialValue</code> method on each UI handled by this object.
 */
public void selectInitialValue(JOptionPane a) {
    for (int i = 0; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).selectInitialValue(a);
    }
}
 
Example #28
Source File: MultiOptionPaneUI.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Invokes the <code>selectInitialValue</code> method on each UI handled by this object.
 */
public void selectInitialValue(JOptionPane a) {
    for (int i = 0; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).selectInitialValue(a);
    }
}
 
Example #29
Source File: MultiOptionPaneUI.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * Invokes the <code>selectInitialValue</code> method on each UI handled by this object.
 */
public void selectInitialValue(JOptionPane a) {
    for (int i = 0; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).selectInitialValue(a);
    }
}
 
Example #30
Source File: MultiOptionPaneUI.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Invokes the <code>selectInitialValue</code> method on each UI handled by this object.
 */
public void selectInitialValue(JOptionPane a) {
    for (int i = 0; i < uis.size(); i++) {
        ((OptionPaneUI) (uis.elementAt(i))).selectInitialValue(a);
    }
}