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: 4 Oct 2005 12:54:59 -0000


------- Comment #21 from hendrich at informatik dot uni-hamburg dot de  
2005-10-04 12:54 -------
Hello Lillian, hello Roman, hello Dave,

I have re-opened the bug again.

Could you please run the attached modified testcase PR24080b and post the
resulting output? Do you also get the negative height, but your windowmanager
somehow still manages to show the window?

I have modified my testcase a little, see new attachment. In order to access
the JOptionPane, the testcase now creates the message dialog by hand instead 
of calling the utility method(s). It dumps the AWT/Swing component tree before
showing the dialog (with component position, size, and layoutmanager).

The following listing shows the result of running the testcase. Note that
showing the dialog WORKS on my system if I add a newline character to the
message or error strings. Also, depending on the length of the message string,
the (information/warning/error) icon is shown - or is missing.

As it turns out, the Layout calculation in BasicOptionPaneUI$ButtonAreaLayout 
somehow fails and results in a negative height on my system.


java/xxx> jamvm PR24080b
-#- dialog= javax.swing.JDialog[JDialog] 
java.awt.Dimension[width=274,height=119]
-#- dialog size= java.awt.Dimension[width=274,height=119]
  javax.swing.JDialog  <0,0>[274x119]  java.awt.BorderLayout[hgap=0,vgap=0]
    javax.swing.JRootPane  <6,23>[262x90] 
address@hidden
      javax.swing.JPanel  <0,0>[262x90] 
[java.awt.FlowLayout,hgap=5,vgap=5,align=1]
      javax.swing.JLayeredPane  <0,0>[262x90]  null
        javax.swing.JPanel  <0,0>[262x90]  java.awt.BorderLayout[hgap=0,vgap=0]
          javax.swing.JOptionPane  <0,0>[262x90] 
address@hidden
            javax.swing.JPanel  <12,12>[238x-64103949] 
java.awt.BorderLayout[hgap=0,vgap=0]
              javax.swing.JLabel  <0,0>[36x39] 
[java.awt.FlowLayout,hgap=5,vgap=5,align=1]
              javax.swing.JPanel  <36,0>[202x39] 
address@hidden
                javax.swing.JLabel  <66,10>[70x16] 
[java.awt.FlowLayout,hgap=5,vgap=5,align=1]
            javax.swing.JPanel  <12,-64103937>[238x-64103962] 
address@hidden
              javax.swing.JButton  <93,0>[51x26] 
[java.awt.FlowLayout,hgap=5,vgap=5,align=1]


-- 

hendrich at informatik dot uni-hamburg dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |


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





reply via email to

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