/[gcjwebplugin]/gcjwebplugin/src/gnu/gcjwebplugin/AppletWarning.java
ViewVC logotype

Diff of /gcjwebplugin/src/gnu/gcjwebplugin/AppletWarning.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mkoch, Sat Nov 1 11:16:36 2003 UTC revision 1.2 by mkoch, Thu Nov 6 13:01:49 2003 UTC
# Line 36  exception statement from your version. * Line 36  exception statement from your version. *
36    
37  package gnu.gcjwebplugin;  package gnu.gcjwebplugin;
38    
39  import java.awt.Color;  import java.awt.BorderLayout;
40    import java.awt.Button;
41  import java.awt.Frame;  import java.awt.Frame;
42  import java.awt.GridLayout;  import java.awt.TextArea;
 import java.awt.Label;  
43    
44  public class AppletWarning extends Label  public class AppletWarning extends Frame
45  {  {
46    public AppletWarning()    public AppletWarning()
47    {    {
48      super ("WARNING: This applet plugin does not provide yet\nthe security you know from other applet plugings.", Label.CENTER);      setLayout (new BorderLayout());
49            
50      setSize (300, 200);      TextArea text = new TextArea (
51    }        "WARNING: The current version of this applet plugin does not provide " +
52          "a security manager capable of handling Java (tm) applets. Applets " +
53    public static void main (String[] args)        "have UNRESTRICTED access to your computer. This means they can do " +
54    {        "anything you can do, like deleting all your important data.",
55      Frame frame = new Frame();        20, 5, TextArea.SCROLLBARS_NONE);
56      frame.setLayout (new GridLayout (1, 1));      text.setEditable (false);
57            add (text, BorderLayout.CENTER);
     AppletWarning warning = new AppletWarning();  
     warning.setBackground (Color.red);  
     frame.add (warning);  
58    
59      frame.show();      add (new Button ("Continue"), BorderLayout.SOUTH);
60    }    }
61  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26