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
This commit is contained in:
parent
a35abc3ca3
commit
b82a670a20
2 changed files with 10 additions and 4 deletions
|
@ -64,7 +64,7 @@ public class BasicOptionPaneUI extends OptionPaneUI
|
|||
|
||||
System.out.println(" -------------: " + pane);
|
||||
|
||||
JLabel message = pane.getMessage() != null ? new JLabel((String)pane.getMessage()) : null;
|
||||
JLabel message = null;
|
||||
JButton ok_button = new JButton("Ok");
|
||||
|
||||
ok_button.addActionListener(new ActionListener()
|
||||
|
@ -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 instanceof String)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue