Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4887842

JOptionPane works intolerably slowly with O/W windows manager

    XMLWordPrintable

Details

    • generic
    • generic

    Description



      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);

      }

      }

      ======================================================================

      Attachments

        Activity

          People

            bchristi Brent Christian
            mmvsunw Mmv Mmv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: