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

MAWT: Window doesn't show on the screen

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: