i know it it isnt much but thats the best that i can do right now.
i also have problem drawing the circle in the middle of the screen.
11-23-2004, 06:21 PM
rogueace
By working in layers, it means you need to build things on top of each other. For example, start with a white background, then draw gray boxes and a black border (using for loops), then the circle on top of that... and so on.
In your code, you don't have a main method. That's why it won't run. You need a main method to call all of your other methods. They don't just happen automatically.
Try starting with this code:
import java.awt.*;
import java.awt.event.*;
public class TVTest
{
public static void main(String[] args)
{
// create Frame
Frame myFrame = new Frame();
myFrame.setSize(500, 450);
myFrame.setVisible(true);
myFrame.setTitle("TV Test");
myFrame.setBackground(Color.white);