*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes I cannot see the Warning for a Frame in an Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "I cannot see the Warning for a Frame in an Applet" Watch "I cannot see the Warning for a Frame in an Applet" New topic
Author

I cannot see the Warning for a Frame in an Applet

Ji Wang
Greenhorn

Joined: Feb 05, 2001
Posts: 13
Hi:
With a test code below, I am trying to verify the warning for display a Frame in an Applet. However, I could not see the warning on the Frame title.
What is the problem?
Ji
====================================

import java.applet.Applet;
import java.awt.*;
public class AppletFrame extends Applet {
public void init() {
Frame f = new Frame("Frame in an Applet");
f.setBounds(10, 10, 100, 100);
f.setVisible(true);
}
}
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
What warning?


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ji Wang
Greenhorn

Joined: Feb 05, 2001
Posts: 13
Hi Cindy:
I am expecting a warning saying that the frame cannot be trusted or there is a security violation.
Ji

Originally posted by Cindy Glass:
What warning?

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Well I got a message in the status bar saying "UNSIGNED JAVA APPLET WINDOW";
Running jdk1.2 on WinNT in Netscape.
Just a minute . . . OK in IE I get "Warning: Applet Window" on the line.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I cannot see the Warning for a Frame in an Applet
 
Similar Threads
string concatenation
can I get rid of the applet warning?
Problem in doing animation using multithreading
adding Frame to Applet
Graphics.translate(x,y) ?