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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

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

      }

        Attachments

          Activity

            People

            • Assignee:
              gsaab Georges Saab
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: