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

Application exits when displaying "cross" X Displays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.2.0
    • client-libs
    • None
    • 1.2fcs
    • generic, sparc
    • solaris_2.5.1, solaris_2.6
    • Not verified

      Compile the program listed below. Run it under 1.1.x or 1.2b3, and the Frame
      stays up after "...Done...". Run it under 1.2b4-G in windows, it is OK.

      But on my Ultra1, running CDE, two monitors:

      1. If I start from display 1, with my DISPLAY to 0, I get a flash and the Frame
      goes away. Ditto in the other direction.
      2. If I start from the same display I present on, the flash is there but the Frame stays up.

      Turning the JIT off didn't make a difference.

      - eduardo

      ======

      import java.awt.*;

      public class Y extends Panel {

          public static int WIDTH = 645;
          public static int HEIGHT = 495;


          public static Frame frame;

          public static void main(String args[]) throws Exception {

      System.err.println("...Starting...");

      frame = new Frame("JavaHelpViewer");
      frame.add("Center", new Label("Hello"));
      frame.setSize(WIDTH, HEIGHT);
      frame.show();

      System.err.println("...Done...");
          }
      }

            xdengsunw Xianfa Deng (Inactive)
            epelegrisunw Eduardo Pelegrillopart (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: