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

MAWT: Window doesn't show on the screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P3
    • None
    • 5.0
    • client-libs
    • x86
    • linux

    Description

      Name: dmR10075 Date: 08/29/2003


      Run the following test case. It creates Frame and child Window. On
      Windows and XAWT you can see both of them, each containing Button
      inside. With Motif toolkit, you will see only Frame.
      Reproducible on Linux/RH9, 1.5.0b16

      import java.awt.*;
      import java.awt.event.*;

      public class TestWindow {
          static Frame frame = new Frame("Test Frame");
          static Window w = new Window(frame);
          public static void main(String[] args) {
              frame.add(new Button("But"));
              frame.pack();
              frame.setVisible(true);
              
              w.add(new Button("But"));
              w.setLocation(100, 100);
              w.pack();
              w.setVisible(true);
          }
      }

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

      Attachments

        Activity

          People

            yan Yuri Nesterenko
            domsunw Dom Dom (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: