Java Code Examples for javax.swing.plaf.OptionPaneUI

The following examples show how to use javax.swing.plaf.OptionPaneUI. 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: jdk1.8-source-analysis   Source File: JOptionPane.java    License: 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 2
/**
 * 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 3
Source Project: openjdk-8   Source File: JOptionPane.java    License: 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 4
Source Project: dragonwell8_jdk   Source File: JOptionPane.java    License: 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 5
/**
 * 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 Project: jdk8u_jdk   Source File: JOptionPane.java    License: 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 Project: jdk8u60   Source File: JOptionPane.java    License: 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 Project: jdk8u-dev-jdk   Source File: JOptionPane.java    License: 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 Project: JDKSourceCode1.8   Source File: JOptionPane.java    License: 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 10
Source Project: JDKSourceCode1.8   Source File: MultiOptionPaneUI.java    License: 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 11
Source Project: jdk8u-jdk   Source File: JOptionPane.java    License: 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 12
/**
 * 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 13
/**
 * 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 14
Source Project: Bytecoder   Source File: JOptionPane.java    License: 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 15
Source Project: Bytecoder   Source File: JOptionPane.java    License: 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 16
Source Project: openjdk-jdk9   Source File: JOptionPane.java    License: 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 17
Source Project: openjdk-jdk9   Source File: JOptionPane.java    License: 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 18
/**
 * 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 19
Source Project: jdk8u-jdk   Source File: MultiOptionPaneUI.java    License: 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 20
Source Project: Java8CN   Source File: JOptionPane.java    License: 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 21
Source Project: hottub   Source File: JOptionPane.java    License: 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 Project: hottub   Source File: MultiOptionPaneUI.java    License: 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 Project: openjdk-8-source   Source File: JOptionPane.java    License: 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
/**
 * 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 25
Source Project: jdk1.8-source-analysis   Source File: MultiOptionPaneUI.java    License: 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 26
/**
 * 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
/**
 * 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 Project: jdk8u60   Source File: MultiOptionPaneUI.java    License: 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 Project: JDKSourceCode1.8   Source File: MultiOptionPaneUI.java    License: MIT License 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
/**
 * 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);
    }
}