bug-classpath
[Top][All Lists]
Advanced

[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




reply via email to

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