Java Interface Question
Posted on 1998-05-19
I am trying to organize the code in one of my applets so that the initial graphics screen generation is done in a separate class from the "main" class. Here is a simple example of my problem. I am trying to get the Hammer class to draw a label on the screen - but it will not. If I put the new_label code in the "main" classTest class it works fine. I think I am missing some simple fundamental concept here.
public class classTest extends Applet
public void init()
Hammer h = new Hammer();
class Hammer extends Frame
new_label = new java.awt.Label("New Label");