Article ID: 167942
Article Last Modified on 8/25/2005
Java.lang.NullPointerException.
import java.awt.*;
import NewDialog;
class MyFrame extends Frame
{
NewDialog dlg = null;
public MyFrame()
{
setFont( new Font( "Dialog", Font.PLAIN, 16));
dlg = new NewDialog(this);
dlg.CreateControls();
}
}
import java.awt.*;
import NewDialog;
class MyFrame extends Frame
{
NewDialog dlg = null;
public MyFrame()
{
dlg = new NewDialog(this);
dlg.CreateControls();
}
}
MyFrame frame = null;
frame = new MyFrame(); frame.show();
Additional query words: NullPointerException java
Keywords: kbbug kbwizard kbarttypeinf KB167942