下面列出了怎么用javax.swing.plaf.OptionPaneUI的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* 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);
}
}
/**
* 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;
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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;
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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;
}
/**
* 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);
}
}
/**
* 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;
}
/**
* 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);
}
}
/**
* 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();
}
}
/**
* 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);
}
}
/**
* 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();
}
}
/**
* 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);
}
}
/**
* 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;
}
/**
* 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;
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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;
}
/**
* 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);
}
}
/**
* 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;
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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);
}
}
/**
* 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);
}
}