Date: Tue, 15 Jan 2002 15:04:28 -0800
From: Dmitry Beransky <[EMAIL PROTECTED]>:
Interestingly enough, the bug database does list this problem.
I searched for it before my last posts, but I was not able to find it.
At 08:19 AM 1/15/2002, [EMAIL PROTECTED] wrote:
>I've tried to determine where the creation of JComboBox comes in the
>execution of JOptionPane.showInputDialog, and the whole thing is
>mysterious. [...] Does anybody know how it
>is that a JComboBox comes to be used by showInputDialog?
The combo box is created by a UI class
(javax.swing.plaf.basic.BasicOptionPaneUI)
Thanks! I would have never been able to find this. JOptionPane
doesn't even mention BasicOptionPaneUI.
The only other idea I have is to override JOptionPane itself and muddle
with setBounds.
I'm not averse to this sort of workaround, but I don't understand what
you mean by your reference to setBounds. The only mention of
setBounds in JOptionPane's source is:
iFrame.setBounds((rootSize.width - iFrameSize.width) / 2,
(rootSize.height - iFrameSize.height) / 2,
iFrameSize.width, iFrameSize.height);
I don't see how this could have a bearing on the problem. If you
could clarify what you meant, I'd appreciate it.
Thanks,
KJ
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing