show() does not display window when called after hide()

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.4
    • Not verified

      Following program will illustrate problem that we are facing. If we call hide() and call show() to redisplay window. Window is not visible. This worked in 1.0.2
      and failing in 1.1

      -------------8< -------- peekaboo.java -----------------------public class public class peekaboo {

      public static void main(String[] args) throws Throwable {
        Frame f = new Frame("Hello");
        f.add("Center", new Label("Here I Am!"));
        f.pack();
        while(true){
          f.show();
          Thread.sleep(1000);
          f.hide();
          Thread.sleep(1000);
        }
      }

      }

            Assignee:
            Georges Saab
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: