wood burning stoves 2.0*
The moose likes Applets and the fly likes using a frame inside an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "using a frame inside an applet" Watch "using a frame inside an applet" New topic

using a frame inside an applet

Mike Smith
Ranch Hand

Joined: Sep 23, 2005
Posts: 85
Hello, good day.

I am currently trying to use a class that extends Frame (taken from a text). This class acts as a drawing surface. My goal is create an applet using the Slate class, however, I have not been successful with it. First is this possible? or is there some kind of conflict between invoking paint(). My ultimate goal is to draw the graphics using slate instead of overriding paint in applet and then to create an animated applet. I would assume that creating a new Frame instead a applet would be possible. Any thoughts, greatly appreciated.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41155
Yes, applets can open Frame windows. When you say "I have not been successful with it", what exactly does that mean? Is the window not opened? Does the painting not occur? TellTheDetails of how you're using this class.

Ping & DNS - my free Android networking tools app
I agree. Here's the link: http://aspose.com/file-tools
subject: using a frame inside an applet
Similar Threads
drawImage not getting the image drawn before printing!
Weird displaying issues between computers?
Double Buffering help!
Flickering problem
creating Image