-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
5.0
-
generic
-
generic
Name: mmR10223 Date: 07/09/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b09, JDK1.4.2-b28, JDK1.4.1-b21
Platform[s] : Solaris (O/W)
JOptionPane works intolerably slowly with O/W windows manager on Solaris in contrast with other WM.
This bug affects JCK1.4a api/javax_swing/interactive/JOptionPaneTests.html#JOptionPane runtime interactive test.
Here is simple code example :
import javax.swing.*;
import java.awt.event.*;
public class MyFrame {
public static void main(String s[]) {
JFrame.setDefaultLookAndFeelDecorated(true);
final JFrame frame = new JFrame("MyFrame");
JButton jb = new JButton("Show JOptionPane Message Dialog");
jb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(frame, "JOptionPane Message Dialog.");
System.exit(1);
}
});
frame.getContentPane().add(jb);
frame.pack();
frame.setVisible(true);
}
}
======================================================================