Commit b82a670a by Michael Koch Committed by Michael Koch

BasicOptionPaneUI.java: More compile fixes from my stupid work yesterday.

2003-06-06  Michael Koch  <konqueror@gmx.de>

	* javax/swing/plaf/basic/BasicOptionPaneUI.java:
	More compile fixes from my stupid work yesterday.

From-SVN: r67531
parent a35abc3c
2003-06-06 Michael Koch <konqueror@gmx.de>
* javax/swing/plaf/basic/BasicOptionPaneUI.java:
More compile fixes from my stupid work yesterday.
2003-06-05 Matt Kraai <kraai@alumni.cmu.edu> 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
* java/lang/w_exp.c (o_threshold, u_threshold): Define only * java/lang/w_exp.c (o_threshold, u_threshold): Define only
......
...@@ -64,7 +64,7 @@ public class BasicOptionPaneUI extends OptionPaneUI ...@@ -64,7 +64,7 @@ public class BasicOptionPaneUI extends OptionPaneUI
System.out.println(" -------------: " + pane); System.out.println(" -------------: " + pane);
JLabel message = pane.getMessage() != null ? new JLabel((String)pane.getMessage()) : null; JLabel message = null;
JButton ok_button = new JButton("Ok"); JButton ok_button = new JButton("Ok");
ok_button.addActionListener(new ActionListener() ok_button.addActionListener(new ActionListener()
...@@ -83,11 +83,12 @@ public class BasicOptionPaneUI extends OptionPaneUI ...@@ -83,11 +83,12 @@ public class BasicOptionPaneUI extends OptionPaneUI
} }
}); });
if (pane.getOptions() != null) Object[] options = null;
if (options != null)
{ {
for (int i=0; i<pane.getOptions().length; i++) for (int i=0; i<options.length; i++)
{ {
Object o = pane.getOptions()[i]; Object o = options[i];
if (o != null) if (o != null)
{ {
if (o instanceof String) if (o instanceof String)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment