Bug in showMessageDialog in J2SE 1.5?

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
 
I

igyy

I tried that method and it works for me, no such problems, i am not
sure why you have that problem ;(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top