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

Define the relationship between setVisible, setClosed, and show

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: krT82822 Date: 02/15/2000


      java version "1.3beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
      Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)

      It would be really helpful if you would FIX and DEFINE the relationship
      between setVisible(), setClosed(), show(), and hide() for JInternalFrames. In
      addition you need to better define what causes INTERNAL_FRAME_OPENED,
      INTERNAL_FRAME_CLOSING, and INTERNAL_FRAME_CLOSED events. I've been having to
      peek at the source code for JInternalFrame to figure this out, but you guys
      seem to keep changing you mind, because the behaviors of these methods in
      JDK 1.2.2-001 and JDK1.3rc1 are not the same.

      Thinks are made all the more confusing because the "Creating a GUI with
      JFC/Swing" trail in the Java Tutorial says "Just as for a regular frame, you
      must invoke setVisible(true) or show() on an internal frame to display
      [an internal frame]."
      (http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html)
      But setVisible( true ) and show() do NOT do the same thing.
      (Review ID: 101289)
      ======================================================================

            kwalrathsunw Kathy Walrath (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: