bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/23937] wrong default buttons for JOptionPane


From: thebohemian at gmx dot net
Subject: [Bug swing/23937] wrong default buttons for JOptionPane
Date: 17 Sep 2005 23:31:31 -0000

------- Additional Comments From thebohemian at gmx dot net  2005-09-17 23:31 
-------
Created an attachment (id=9755)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9755&action=view)
preliminary patch

This patch would fix the issue but there is another problem. When the
getButtons() method is called (which contains the fix) the corresponding option
pane may not be configured.
This means:

JOptionPane pane = new JOptionPane(....)
-> BasicOptionPaneUI is created

pane.setWantsInput(true);
-> this change has no effect because BasicOptionPaneUI.getButtons() is already
called.

JDialog d = pane.createDialog(....);
-> dialog with the wrong buttons is created.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23937




reply via email to

[Prev in Thread] Current Thread [Next in Thread]