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

Possible to create an applet window with no applet warning

XMLWordPrintable

    • b45
    • generic, x86
    • linux, solaris_2.5.1

        Name: rmT116609 Date: 08/11/2004


        FULL PRODUCT VERSION :
        java version "1.5.0-beta3"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b60)
        Java HotSpot(TM) Client VM (build 1.5.0-beta3-b60, mixed mode, sharing)


        ADDITIONAL OS VERSION INFORMATION :
        Linux jupiter 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686 unknown unknown GNU/Linux


        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Mandrake Linux 10.0, KDE

        A DESCRIPTION OF THE PROBLEM :
        A simple JWindow is displayed with no applet warning when run as an unsigned applet.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run the attached code.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        A window with an applet warning should be displayed.
        ACTUAL -
        A window with no applet warning is displayed. Additionally, not the entire contents of the window is painted red, as it should be.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        Java source code:

        import java.applet.*;
        import javax.swing.*;
        import java.awt.*;

        public class WindowApplet extends Applet{
          
          
          public void start(){
            JFrame f = new JFrame("Test Frame");
            f.setBounds(50, 50, 100, 100);
            f.setVisible(true);
            
            JWindow window = new JWindow(f);

            JPanel panel = new JPanel();
            panel.setOpaque(true);
            panel.setBackground(Color.red);
            window.setContentPane(panel);
            window.setBounds(50, 50, 500, 500);
            window.setVisible(true);
            window.toFront();
          }
          
        }
        ---------- END SOURCE ----------
        (Incident Review ID: 296558)
        ======================================================================
        ###@###.### 2004-08-11

              yan Yuri Nesterenko (Inactive)
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: