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

JInternalFrame can not be hidden then shown again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.5
    • client-libs
    • 1.2fcs
    • generic
    • generic
    • Not verified



      Name: rk38400 Date: 04/14/98


      JInternalFrame f=new JInternalFrame();

      f.setVisible(true);
      f.setVisible(false);

      f.setVisible(true); // This call causes an
                           // infinite call loop that
                           // leads to stack overflow.


      The problem is due to the fact that JInternalFrame
      overrides the show() method which calls setVisible()
      when isVisible() returns false but setVisible()
      calls show() again. What's missing is a way for
      JInternalFrame to set the 'visible' field in Component
      without calling setVisible().
      (Review ID: 27296)
      ======================================================================

            rschiavisunw Richard Schiavi (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: