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 |
} |
} |