Hi all!
I've a pretty naive problem with my applet which is as follows.....
// Wordlist for GRE High Frequency Words
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
/* <applet code="Wordlist.class" width=800 height=600> </applet> */
public class Wordlist extends Applet
{
TextField m1 ,m2 ,m3 ,m4 ,m5 ,m6 ,m7 ,m8 ,m9 ;
public void init() {
Label f1 = new Label("subside; lessen ",Label.LEFT);
Label f2 = new Label("deviating from the normal or right course ", Label.LEFT);
Label f3 = new Label("to intensify ", Label.LEFT);
Label f4 = new Label("temporary inactivity ", Label.LEFT);
Label f5 = new Label("depart suddenly and hide ", Label.LEFT);
Label f6 = new Label("moderate in eating, drinking, etc. ", Label.LEFT);
Label f7 = new Label("warn reprove ", Label.LEFT);
Label f8 = new Label("make impure ", Label.LEFT);
Label f9 = new Label("of beauty; appreciating beauty ", Label.LEFT);
m1 = new TextField(6);
m2 = new TextField(6);
m3 = new TextField(6);
m4 = new TextField(6);
m5 = new TextField(6);
m6 = new TextField(6);
m7 = new TextField(6);
m8 = new TextField(6);
m9 = new TextField(6);
add(f1); add(m1);
add(f2); add(m2);
add(f3); add(m3);
add(f4); add(m4);
add(f5); add(m5);
add(f6); add(m6);
add(f7); add(m7);
add(f8); add(m8);
add(f9); add(m9);
}
}
When i run the given applet.. it works absolutely fine.. It has a meaning of a word written and a corresponding textfields where the word can be typed. But the problem is that when i add lots of other meanings and textfields to the above programs.. about 350 (i know it was painful and i would welcome some other way out of this tedious job)... the applet doesn't initialize. Is it occuring because i'm not using a scrollbar. Anybody help me please! I'm running windows XP.
The error it shows in the appletviewer is "Applet not initialized"
and in the prompt it says :
java.lang.NullPointerException
By the way, there lots of indians here on this forum... cool