R
Rhino
I'm having a problem with one particular version of the
JOptionPane.showMessageDialog() in J2SE 1.5.
I'm using the version of the method that has 5 parameters, the
parentComponent, the message, the title, the messageType, and the icon. For
some reason, when I execute that method, my icon never appears in the
dialog. I've run the debugger and the icon is perfectly correct (not null
and containing the right file name) immediately before I execute the method.
I'm at a loss to understand why I'm not getting my icon. Has anyone else
experienced this? Does anyone have any idea why this might be happening?
This method has been around for a fair while so it seems unlikely that it is
buggy.
For what it's worth, if I use the showMessageDialog() method that uses the
default icon, it works fine, i.e. I get the default icon.
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare
JOptionPane.showMessageDialog() in J2SE 1.5.
I'm using the version of the method that has 5 parameters, the
parentComponent, the message, the title, the messageType, and the icon. For
some reason, when I execute that method, my icon never appears in the
dialog. I've run the debugger and the icon is perfectly correct (not null
and containing the right file name) immediately before I execute the method.
I'm at a loss to understand why I'm not getting my icon. Has anyone else
experienced this? Does anyone have any idea why this might be happening?
This method has been around for a fair while so it seems unlikely that it is
buggy.
For what it's worth, if I use the showMessageDialog() method that uses the
default icon, it works fine, i.e. I get the default icon.
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare