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

JInternalFrame's setIcon(true) doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.2.0
    • client-libs
    • beta
    • x86
    • windows_95, windows_nt



      Name: rk38400 Date: 04/20/98


      Build and run this source, and the JInternalFrame
      never appears:

      import com.sun.java.swing.*;
      import java.beans.*;
       
      public class Test extends JFrame
      {
         private JDesktopPane mDesktop;
       
         public Test()
         {
            super( "Test Frame" );
            mDesktop = new JDesktopPane();
            getContentPane().add( mDesktop );
            JInternalFrame jif = new JInternalFrame( "My Frame" );
            jif.setIconifiable( true );
            mDesktop.add( jif );
            jif.setBounds( 100, 100, 100, 100 );
            jif.setIconifiable( true );
            setBounds( 100, 100, 300, 300 );
            try
            {
               jif.setIcon( true );
            }
            catch ( PropertyVetoException ex )
            {
               ex.printStackTrace();
            }
            setVisible( true );
         }
       
         public static void main( String args[] )
         {
            new Test();
         }
      }
      (Review ID: 28685)
      ======================================================================

            hgajewsksunw Hania Gajewska (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: