[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/24080] JOptionPane.showMessageDialog deadlocks
From: |
hendrich at informatik dot uni-hamburg dot de |
Subject: |
[Bug swing/24080] JOptionPane.showMessageDialog deadlocks |
Date: |
30 Sep 2005 14:40:37 -0000 |
------- Additional Comments From hendrich at informatik dot uni-hamburg dot de
2005-09-30 14:40 -------
Subject: Re: JOptionPane.showMessageDialog deadlocks
>> Could this be another buglet in BoxLayout, something like the
>> components aligned outside the window?
>
> Sounds unlikely. I have written a bunch of testcases for the alignment
> stuff when I wrote the OverlayLayout (which - like the BoxLayout - uses
> the SizeRequirements helper class for the calculations), and I think
> they should be correct now. Of course, I wouldn't go through fire for
> that...
Hmm.
Just to make sure, I just changed JOptionPane to use FlowLayout instead
of BoxLayout, and while the resulting dialog (from PR24080) is not pretty,
at least it shows something... see attached screenshot.
I still haven't a clue why BoxLayout is broken (in this one case) for me,
but not for everybody else.
javax/swing/JOptionPane.java
public JOptionPane(Object message, int messageType, int optionType,
Icon icon, Object[] options, Object initialValue)
{
this.message = message;
if (! validMessageType(messageType))
throw new IllegalArgumentException("Message Type not legal value.");
this.messageType = messageType;
if (! validOptionType(optionType))
throw new IllegalArgumentException("Option Type not legal value.");
this.optionType = optionType;
this.icon = icon;
this.options = options;
this.initialValue = initialValue;
- setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
+ setLayout( new FlowLayout( FlowLayout.LEFT ));
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24080
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, (continued)
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, langel at redhat dot com, 2005/09/29
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, hendrich at informatik dot uni-hamburg dot de, 2005/09/29
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, cvs-commit at developer dot classpath dot org, 2005/09/29
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, hendrich at informatik dot uni-hamburg dot de, 2005/09/29
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, langel at redhat dot com, 2005/09/29
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, hendrich at informatik dot uni-hamburg dot de, 2005/09/30
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, langel at redhat dot com, 2005/09/30
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, langel at redhat dot com, 2005/09/30
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, roman at kennke dot org, 2005/09/30
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, hendrich at informatik dot uni-hamburg dot de, 2005/09/30
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks,
hendrich at informatik dot uni-hamburg dot de <=
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, david dot gilbert at object-refinery dot com, 2005/09/30
- [Bug swing/24080] JOptionPane.showMessageDialog deadlocks, langel at redhat dot com, 2005/09/30