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

The null pointer exception means you tried to call a method on an object that had not been created yet. Chances are you just missed an initialization line (easy to do if you had 350 of them!). The exception stack trace should give you some information on which one caused the problem.

Well, i've checked out the initializations, they're all fine. Here comes the code that's reeeeeeeally long.....

// 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 ,
m10 ,m11 ,m12 ,m13 ,m14 ,m15 ,m16 ,m17 ,m18 ,m19 ,
m20 ,m21 ,m22 ,m23 ,m24 ,m25 ,m26 ,m27 ,m28 ,m29 ,
m30 ,m31 ,m32 ,m33 ,m34 ,m35 ,m36 ,m37 ,m38 ,m39 ,
m40 ,m41 ,m42 ,m43 ,m44 ,m45 ,m46 ,m47 ,m48 ,m49 ,
m50 ,m51 ,m52 ,m53 ,m54 ,m55 ,m56 ,m57 ,m58 ,m59 ,
m60 ,m61 ,m62 ,m63 ,m64 ,m65 ,m66 ,m67 ,m68 ,m69 ,
m70 ,m71 ,m72 ,m73 ,m74 ,m75 ,m76 ,m77 ,m78 ,m79 ,
m80 ,m81 ,m82 ,m83 ,m84 ,m85 ,m86 ,m87 ,m88 ,m89 ,
m90 ,m91 ,m92 ,m93 ,m94 ,m95 ,m96 ,m97 ,m98 ,m99 ,
m100 ,m101 ,m102 ,m103 ,m104 ,m105 ,m106 ,m107 ,m108 ,m109 ,
m110 ,m111 ,m112 ,m113 ,m114 ,m115 ,m116 ,m117 ,m118 ,m119 ,
m120 ,m121 ,m122 ,m123 ,m124 ,m125 ,m126 ,m127 ,m128 ,m129 ,
m130 ,m131 ,m132 ,m133 ,m134 ,m135 ,m136 ,m137 ,m138 ,m139 ,
m140 ,m141 ,m142 ,m143 ,m144 ,m145 ,m146 ,m147 ,m148 ,m149 ,
m150 ,m151 ,m152 ,m153 ,m154 ,m155 ,m156 ,m157 ,m158 ,m159 ,
m160 ,m161 ,m162 ,m163 ,m164 ,m165 ,m166 ,m167 ,m168 ,m169 ,
m170 ,m171 ,m172 ,m173 ,m174 ,m175 ,m176 ,m177 ,m178 ,m179 ,
m180 ,m181 ,m182 ,m183 ,m184 ,m185 ,m186 ,m187 ,m188 ,m189 ,
m190 ,m191 ,m192 ,m193 ,m194 ,m195 ,m196 ,m197 ,m198 ,m199 ,
m200 ,m201 ,m202 ,m203 ,m204 ,m205 ,m206 ,m207 ,m208 ,m209 ,
m210 ,m211 ,m212 ,m213 ,m214 ,m215 ,m216 ,m217 ,m218 ,m219 ,
m220 ,m221 ,m222 ,m223 ,m224 ,m225 ,m226 ,m227 ,m228 ,m229 ,
m230 ,m231 ,m232 ,m233 ,m234 ,m235 ,m236 ,m237 ,m238 ,m239 ,
m240 ,m241 ,m242 ,m243 ,m244 ,m245 ,m246 ,m247 ,m248 ,m249 ,
m250 ,m251 ,m252 ,m253 ,m254 ,m255 ,m256 ,m257 ,m258 ,m259 ,
m260 ,m261 ,m262 ,m263 ,m264 ,m265 ,m266 ,m267 ,m268 ,m269 ,
m270 ,m271 ,m272 ,m273 ,m274 ,m275 ,m276 ,m277 ,m278 ,m279 ,
m280 ,m281 ,m282 ,m283 ,m284 ,m285 ,m286 ,m287 ,m288 ,m289 ,
m290 ,m291 ,m292 ,m293 ,m294 ,m295 ,m296 ,m297 ,m298 ,m299 ,
m300 ,m301 ,m302 ,m303 ,m304 ,m305 ,m306 ,m307 ,m308 ,m309 ,
m310 ,m311 ,m312 ,m313 ,m314 ,m315 ,m316 ,m317 ,m318 ,m319 ,
m320 ,m321 ,m322 ,m323 ,m324 ,m325 ,m326 ,m327 ,m328 ,m329 ,
m330, m331, m332, m333 ;


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("											", 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);
Label f10 = new Label(" ", Label.LEFT);
Label f11 = new Label(" ", Label.LEFT);
Label f12 = new Label(" ", Label.LEFT);
Label f13 = new Label(" ", Label.LEFT); 
Label f14 = new Label(" ", Label.LEFT);
Label f15 = new Label(" ", Label.LEFT);
Label f16 = new Label(" ", Label.LEFT);
Label f17 = new Label(" ", Label.LEFT);
Label f18 = new Label(" ", Label.LEFT);
Label f19 = new Label(" ", Label.LEFT);
Label f20 = new Label(" ", Label.LEFT);
Label f21 = new Label(" ", Label.LEFT);
Label f22 = new Label(" ", Label.LEFT);
Label f23 = new Label(" ", Label.LEFT);
Label f24 = new Label(" ", Label.LEFT); 
Label f25 = new Label(" ", Label.LEFT);
Label f26 = new Label(" ", Label.LEFT);
Label f27 = new Label(" ", Label.LEFT);
Label f28 = new Label(" ", Label.LEFT);
Label f29 = new Label(" ", Label.LEFT);
Label f30 = new Label(" ", Label.LEFT);
Label f31 = new Label(" ", Label.LEFT);
Label f32 = new Label(" ", Label.LEFT);
Label f33 = new Label(" ", Label.LEFT);
Label f34 = new Label(" ", Label.LEFT);
Label f35 = new Label(" ", Label.LEFT); 
Label f36 = new Label(" ", Label.LEFT);
Label f37 = new Label(" ", Label.LEFT);
Label f38 = new Label(" ", Label.LEFT);
Label f39 = new Label(" ", Label.LEFT);
Label f40 = new Label(" ", Label.LEFT);
Label f41 = new Label(" ", Label.LEFT);
Label f42 = new Label(" ", Label.LEFT);
Label f43 = new Label(" ", Label.LEFT);
Label f44 = new Label(" ", Label.LEFT);
Label f45 = new Label(" ", Label.LEFT);
Label f46 = new Label(" ", Label.LEFT); 
Label f47 = new Label(" ", Label.LEFT);
Label f48 = new Label(" ", Label.LEFT);
Label f49 = new Label(" ", Label.LEFT);
Label f50 = new Label(" ", Label.LEFT);
Label f51 = new Label(" ", Label.LEFT);
Label f52 = new Label(" ", Label.LEFT);
Label f53 = new Label(" ", Label.LEFT);
Label f54 = new Label(" ", Label.LEFT);
Label f55 = new Label(" ", Label.LEFT);
Label f56 = new Label(" ", Label.LEFT);
Label f57 = new Label(" ", Label.LEFT); 
Label f58 = new Label(" ", Label.LEFT);
Label f59 = new Label(" ", Label.LEFT);
Label f60 = new Label(" ", Label.LEFT);
Label f61 = new Label(" ", Label.LEFT);
Label f62 = new Label(" ", Label.LEFT);
Label f63 = new Label(" ", Label.LEFT);
Label f64 = new Label(" ", Label.LEFT);
Label f65 = new Label(" ", Label.LEFT);
Label f66 = new Label(" ", Label.LEFT);
Label f67 = new Label(" ", Label.LEFT);
Label f68 = new Label(" ", Label.LEFT); 
Label f69 = new Label(" ", Label.LEFT);
Label f70 = new Label(" ", Label.LEFT);
Label f71 = new Label(" ", Label.LEFT);
Label f72 = new Label(" ", Label.LEFT);
Label f73 = new Label(" ", Label.LEFT);
Label f74 = new Label(" ", Label.LEFT);
Label f75 = new Label(" ", Label.LEFT);
Label f76 = new Label(" ", Label.LEFT);
Label f77 = new Label(" ", Label.LEFT);
Label f78 = new Label(" ", Label.LEFT);
Label f79 = new Label(" ", Label.LEFT); 
Label f80 = new Label(" ", Label.LEFT);
Label f81 = new Label(" ", Label.LEFT);
Label f82 = new Label(" ", Label.LEFT);
Label f83 = new Label(" ", Label.LEFT);
Label f84 = new Label(" ", Label.LEFT);
Label f85 = new Label(" ", Label.LEFT);
Label f86 = new Label(" ", Label.LEFT);
Label f87 = new Label(" ", Label.LEFT);
Label f88 = new Label(" ", Label.LEFT);
Label f89 = new Label(" ", Label.LEFT);
Label f90 = new Label(" ", Label.LEFT); 
Label f91 = new Label(" ", Label.LEFT);
Label f92 = new Label(" ", Label.LEFT);
Label f93 = new Label(" ", Label.LEFT);
Label f94 = new Label(" ", Label.LEFT);
Label f95 = new Label(" ", Label.LEFT);
Label f96 = new Label(" ", Label.LEFT);
Label f97 = new Label(" ", Label.LEFT);
Label f98 = new Label(" ", Label.LEFT);
Label f99 = new Label(" ", Label.LEFT);
Label f100 = new Label(" ", Label.LEFT);
Label f101 = new Label(" ", Label.LEFT); 
Label f102 = new Label(" ", Label.LEFT);
Label f103 = new Label(" ", Label.LEFT);
Label f104 = new Label(" ", Label.LEFT);
Label f105 = new Label(" ", Label.LEFT);
Label f106 = new Label(" ", Label.LEFT);
Label f107 = new Label(" ", Label.LEFT);
Label f108 = new Label(" ", Label.LEFT);
Label f109 = new Label(" ", Label.LEFT);
Label f110 = new Label(" ", Label.LEFT);
Label f111 = new Label(" ", Label.LEFT);
Label f112 = new Label(" ", Label.LEFT); 
Label f113 = new Label(" ", Label.LEFT);
Label f114 = new Label(" ", Label.LEFT);
Label f115 = new Label(" ", Label.LEFT);
Label f116 = new Label(" ", Label.LEFT);
Label f117 = new Label(" ", Label.LEFT);
Label f118 = new Label(" ", Label.LEFT);
Label f119 = new Label(" ", Label.LEFT);
Label f120 = new Label(" ", Label.LEFT);
Label f121 = new Label(" ", Label.LEFT);
Label f122 = new Label(" ", Label.LEFT);
Label f123 = new Label(" ", Label.LEFT); 
Label f124 = new Label(" ", Label.LEFT);
Label f125 = new Label(" ", Label.LEFT);
Label f126 = new Label(" ", Label.LEFT);
Label f127 = new Label(" ", Label.LEFT);
Label f128 = new Label(" ", Label.LEFT);
Label f129 = new Label(" ", Label.LEFT);
Label f130 = new Label(" ", Label.LEFT);
Label f131 = new Label(" ", Label.LEFT);
Label f132 = new Label(" ", Label.LEFT);
Label f133 = new Label(" ", Label.LEFT);
Label f134 = new Label(" ", Label.LEFT); 
Label f135 = new Label(" ", Label.LEFT);
Label f136 = new Label(" ", Label.LEFT);
Label f137 = new Label(" ", Label.LEFT);
Label f138 = new Label(" ", Label.LEFT);
Label f139 = new Label(" ", Label.LEFT);
Label f140 = new Label(" ", Label.LEFT);
Label f141 = new Label(" ", Label.LEFT);
Label f142 = new Label(" ", Label.LEFT);
Label f143 = new Label(" ", Label.LEFT);
Label f144 = new Label(" ", Label.LEFT);
Label f145 = new Label(" ", Label.LEFT); 
Label f146 = new Label(" ", Label.LEFT);
Label f147 = new Label(" ", Label.LEFT);
Label f148 = new Label(" ", Label.LEFT);
Label f149 = new Label(" ", Label.LEFT);
Label f150 = new Label(" ", Label.LEFT);
Label f151 = new Label(" ", Label.LEFT);
Label f152 = new Label(" ", Label.LEFT);
Label f153 = new Label(" ", Label.LEFT);
Label f154 = new Label(" ", Label.LEFT);
Label f155 = new Label(" ", Label.LEFT);
Label f156 = new Label(" ", Label.LEFT); 
Label f157 = new Label(" ", Label.LEFT);
Label f158 = new Label(" ", Label.LEFT);
Label f159 = new Label(" ", Label.LEFT);
Label f160 = new Label(" ", Label.LEFT);
Label f161 = new Label(" ", Label.LEFT);
Label f162 = new Label(" ", Label.LEFT);
Label f163 = new Label(" ", Label.LEFT);
Label f164 = new Label(" ", Label.LEFT);
Label f165 = new Label(" ", Label.LEFT);
Label f166 = new Label(" ", Label.LEFT);
Label f167 = new Label(" ", Label.LEFT); 
Label f168 = new Label(" ", Label.LEFT);
Label f169 = new Label(" ", Label.LEFT);
Label f170 = new Label(" ", Label.LEFT);
Label f171 = new Label(" ", Label.LEFT);
Label f172 = new Label(" ", Label.LEFT);
Label f173 = new Label(" ", Label.LEFT);
Label f174 = new Label(" ", Label.LEFT);
Label f175 = new Label(" ", Label.LEFT);
Label f176 = new Label(" ", Label.LEFT);
Label f177 = new Label(" ", Label.LEFT);
Label f178 = new Label(" ", Label.LEFT); 
Label f179 = new Label(" ", Label.LEFT);
Label f180 = new Label(" ", Label.LEFT);
Label f181 = new Label(" ", Label.LEFT);
Label f182 = new Label(" ", Label.LEFT);
Label f183 = new Label(" ", Label.LEFT);
Label f184 = new Label(" ", Label.LEFT);
Label f185 = new Label(" ", Label.LEFT);
Label f186 = new Label(" ", Label.LEFT);
Label f187 = new Label(" ", Label.LEFT);
Label f188 = new Label(" ", Label.LEFT);
Label f189 = new Label(" ", Label.LEFT); 
Label f190 = new Label(" ", Label.LEFT);
Label f191 = new Label(" ", Label.LEFT);
Label f192 = new Label(" ", Label.LEFT);
Label f193 = new Label(" ", Label.LEFT);
Label f194 = new Label(" ", Label.LEFT);
Label f195 = new Label(" ", Label.LEFT);
Label f196 = new Label(" ", Label.LEFT);
Label f197 = new Label(" ", Label.LEFT);
Label f198 = new Label(" ", Label.LEFT);
Label f199 = new Label(" ", Label.LEFT);
Label f200 = new Label(" ", Label.LEFT); 
Label f201 = new Label(" ", Label.LEFT);
Label f202 = new Label(" ", Label.LEFT);
Label f203 = new Label(" ", Label.LEFT);
Label f204 = new Label(" ", Label.LEFT);
Label f205 = new Label(" ", Label.LEFT);
Label f206 = new Label(" ", Label.LEFT);
Label f207 = new Label(" ", Label.LEFT);
Label f208 = new Label(" ", Label.LEFT);
Label f209 = new Label(" ", Label.LEFT);
Label f210 = new Label(" ", Label.LEFT);
Label f211 = new Label(" ", Label.LEFT); 
Label f212 = new Label(" ", Label.LEFT);
Label f213 = new Label(" ", Label.LEFT);
Label f214 = new Label(" ", Label.LEFT);
Label f215 = new Label(" ", Label.LEFT);
Label f216 = new Label(" ", Label.LEFT);
Label f217 = new Label(" ", Label.LEFT);
Label f218 = new Label(" ", Label.LEFT);
Label f219 = new Label(" ", Label.LEFT);
Label f220 = new Label(" ", Label.LEFT);
Label f221 = new Label(" ", Label.LEFT); 
Label f222 = new Label(" ", Label.LEFT);
Label f223 = new Label(" ", Label.LEFT);
Label f224 = new Label(" ", Label.LEFT);
Label f225 = new Label(" ", Label.LEFT);
Label f226 = new Label(" ", Label.LEFT);
Label f227 = new Label(" ", Label.LEFT);
Label f228 = new Label(" ", Label.LEFT);
Label f229 = new Label(" ", Label.LEFT);
Label f230 = new Label(" ", Label.LEFT);
Label f231 = new Label(" ", Label.LEFT);
Label f232 = new Label(" ", Label.LEFT); 
Label f233 = new Label(" ", Label.LEFT);
Label f234 = new Label(" ", Label.LEFT);
Label f235 = new Label(" ", Label.LEFT);
Label f236 = new Label(" ", Label.LEFT);
Label f237 = new Label(" ", Label.LEFT);
Label f238 = new Label(" ", Label.LEFT);
Label f239 = new Label(" ", Label.LEFT);
Label f240 = new Label(" ", Label.LEFT);
Label f241 = new Label(" ", Label.LEFT);
Label f242 = new Label(" ", Label.LEFT);
Label f243 = new Label(" ", Label.LEFT); 
Label f244 = new Label(" ", Label.LEFT);
Label f245 = new Label(" ", Label.LEFT);
Label f246 = new Label(" ", Label.LEFT);
Label f247 = new Label(" ", Label.LEFT);
Label f248 = new Label(" ", Label.LEFT);
Label f249 = new Label(" ", Label.LEFT);
Label f250 = new Label(" ", Label.LEFT);
Label f251 = new Label(" ", Label.LEFT);
Label f252 = new Label(" ", Label.LEFT);
Label f253 = new Label(" ", Label.LEFT);
Label f254 = new Label(" ", Label.LEFT); 
Label f255 = new Label(" ", Label.LEFT);
Label f256 = new Label(" ", Label.LEFT);
Label f257 = new Label(" ", Label.LEFT);
Label f258 = new Label(" ", Label.LEFT);
Label f259 = new Label(" ", Label.LEFT);
Label f260 = new Label(" ", Label.LEFT);
Label f261 = new Label(" ", Label.LEFT);
Label f262 = new Label(" ", Label.LEFT);
Label f263 = new Label(" ", Label.LEFT);
Label f264 = new Label(" ", Label.LEFT);
Label f265 = new Label(" ", Label.LEFT); 
Label f266 = new Label(" ", Label.LEFT);
Label f267 = new Label(" ", Label.LEFT);
Label f268 = new Label(" ", Label.LEFT);
Label f269 = new Label(" ", Label.LEFT);
Label f270 = new Label(" ", Label.LEFT);
Label f271 = new Label(" ", Label.LEFT);
Label f272 = new Label(" ", Label.LEFT);
Label f273 = new Label(" ", Label.LEFT);
Label f274 = new Label(" ", Label.LEFT);
Label f275 = new Label(" ", Label.LEFT);
Label f276 = new Label(" ", Label.LEFT); 
Label f277 = new Label(" ", Label.LEFT);
Label f278 = new Label(" ", Label.LEFT);
Label f279 = new Label(" ", Label.LEFT);
Label f280 = new Label(" ", Label.LEFT);
Label f281 = new Label(" ", Label.LEFT);
Label f282 = new Label(" ", Label.LEFT);
Label f283 = new Label(" ", Label.LEFT);
Label f284 = new Label(" ", Label.LEFT);
Label f285 = new Label(" ", Label.LEFT);
Label f286 = new Label(" ", Label.LEFT);
Label f287 = new Label(" ", Label.LEFT); 
Label f288 = new Label(" ", Label.LEFT);
Label f289 = new Label(" ", Label.LEFT);
Label f290 = new Label(" ", Label.LEFT);
Label f291 = new Label(" ", Label.LEFT);
Label f292 = new Label(" ", Label.LEFT);
Label f293 = new Label(" ", Label.LEFT);
Label f294 = new Label(" ", Label.LEFT);
Label f295 = new Label(" ", Label.LEFT);
Label f296 = new Label(" ", Label.LEFT);
Label f297 = new Label(" ", Label.LEFT);
Label f298 = new Label(" ", Label.LEFT); 
Label f299 = new Label(" ", Label.LEFT);
Label f300 = new Label(" ", Label.LEFT);
Label f301 = new Label(" ", Label.LEFT);
Label f302 = new Label(" ", Label.LEFT);
Label f303 = new Label(" ", Label.LEFT);
Label f304 = new Label(" ", Label.LEFT);
Label f305 = new Label(" ", Label.LEFT);
Label f306 = new Label(" ", Label.LEFT);
Label f307 = new Label(" ", Label.LEFT);
Label f308 = new Label(" ", Label.LEFT);
Label f309 = new Label(" ", Label.LEFT); 
Label f310 = new Label(" ", Label.LEFT);
Label f311 = new Label(" ", Label.LEFT);
Label f312 = new Label(" ", Label.LEFT);
Label f313 = new Label(" ", Label.LEFT);
Label f314 = new Label(" ", Label.LEFT);
Label f315 = new Label(" ", Label.LEFT);
Label f316 = new Label(" ", Label.LEFT);
Label f317 = new Label(" ", Label.LEFT);
Label f318 = new Label(" ", Label.LEFT);
Label f319 = new Label(" ", Label.LEFT);
Label f320 = new Label(" ", Label.LEFT); 
Label f321 = new Label(" ", Label.LEFT);
Label f322 = new Label(" ", Label.LEFT);
Label f323 = new Label(" ", Label.LEFT);
Label f324 = new Label(" ", Label.LEFT);
Label f325 = new Label(" ", Label.LEFT);
Label f326 = new Label(" ", Label.LEFT);
Label f327 = new Label(" ", Label.LEFT);
Label f328 = new Label(" ", Label.LEFT);
Label f329 = new Label(" ", Label.LEFT);
Label f330 = new Label(" ", Label.LEFT);
Label f331 = new Label(" ", Label.LEFT); 
Label f332 = new Label(" ", Label.LEFT);
Label f333 = new Label(" ", 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);
 m10 = new TextField(6);
m11 = new TextField(6);
m12 = new TextField(6);
m13 = new TextField(6);
m14 = new TextField(6);
m15 = new TextField(6);
m16 = new TextField(6);
m17 = new TextField(6);
m18 = new TextField(6);
m19 = new TextField(6);
m20 = new TextField(6);
m21 = new TextField(6);
m22 = new TextField(6);
m23 = new TextField(6);
m24 = new TextField(6);
m25 = new TextField(6);
m26 = new TextField(6);
m27 = new TextField(6);
m28 = new TextField(6);
m29 = new TextField(6);
m30 = new TextField(6);
m31 = new TextField(6);
m32 = new TextField(6);
m33 = new TextField(6);
m34 = new TextField(6);
m35 = new TextField(6);
m36 = new TextField(6);
m37 = new TextField(6);
m38 = new TextField(6);
m39 = new TextField(6);
m40 = new TextField(6);
m41 = new TextField(6);
m42 = new TextField(6);
m43 = new TextField(6);
m44 = new TextField(6);
m45 = new TextField(6);
m46 = new TextField(6);
m47 = new TextField(6);
m48 = new TextField(6);
m49 = new TextField(6);
m50 = new TextField(6);
m51 = new TextField(6);
m52 = new TextField(6);
m53 = new TextField(6);
m54 = new TextField(6);
m55 = new TextField(6);
m56 = new TextField(6);
m57 = new TextField(6);
m58 = new TextField(6);
m59 = new TextField(6);
m60 = new TextField(6);
m61 = new TextField(6);
m62 = new TextField(6);
m63 = new TextField(6);
m64 = new TextField(6);
m65 = new TextField(6);
m66 = new TextField(6);
m67 = new TextField(6);
m68 = new TextField(6);
m69 = new TextField(6);
m70 = new TextField(6);
m71 = new TextField(6);
m72 = new TextField(6);
m73 = new TextField(6);
m74 = new TextField(6);
m75 = new TextField(6);
m76 = new TextField(6);
m77 = new TextField(6);
m78 = new TextField(6);
m79 = new TextField(6);
m80 = new TextField(6);
m81 = new TextField(6);
m82 = new TextField(6);
m83 = new TextField(6);
m84 = new TextField(6);
m85 = new TextField(6);
m86 = new TextField(6);
m87 = new TextField(6);
m88 = new TextField(6);
m89 = new TextField(6);
m90 = new TextField(6);
m91 = new TextField(6);
m92 = new TextField(6);
m93 = new TextField(6);
m94 = new TextField(6);
m95 = new TextField(6);
m96 = new TextField(6);
m97 = new TextField(6);
m98 = new TextField(6);
m99 = new TextField(6);
m100 = new TextField(6);
m101 = new TextField(6);
m102 = new TextField(6);
m103 = new TextField(6);
m104 = new TextField(6);
m105 = new TextField(6);
m106 = new TextField(6);
m107 = new TextField(6);
m108 = new TextField(6);
m109 = new TextField(6);
m110 = new TextField(6);
m111 = new TextField(6);
m112 = new TextField(6);
m113 = new TextField(6);
m114 = new TextField(6);
m115 = new TextField(6);
m116 = new TextField(6);
m117 = new TextField(6);
m118 = new TextField(6);
m119 = new TextField(6);
m120 = new TextField(6);
m121 = new TextField(6);
m122 = new TextField(6);
m123 = new TextField(6);
m124 = new TextField(6);
m125 = new TextField(6);
m126 = new TextField(6);
m127 = new TextField(6);
m128 = new TextField(6);
m129 = new TextField(6);
m130 = new TextField(6);
m131 = new TextField(6);
m132 = new TextField(6);
m133 = new TextField(6);
m134 = new TextField(6);
m135 = new TextField(6);
m136 = new TextField(6);
m137 = new TextField(6);
m138 = new TextField(6);
m139 = new TextField(6);
m140 = new TextField(6);
m141 = new TextField(6);
m142 = new TextField(6);
m143 = new TextField(6);
m144 = new TextField(6);
m145 = new TextField(6);
m146 = new TextField(6);
m147 = new TextField(6);
m148 = new TextField(6);
m149 = new TextField(6);
m150 = new TextField(6);
m151 = new TextField(6);
m152 = new TextField(6);
m153 = new TextField(6);
m154 = new TextField(6);
m155 = new TextField(6);
m156 = new TextField(6);
m157 = new TextField(6);
m158 = new TextField(6);
m159 = new TextField(6);
m160 = new TextField(6);
m161 = new TextField(6);
m162 = new TextField(6);
m163 = new TextField(6);
m164 = new TextField(6);
m165 = new TextField(6);
m166 = new TextField(6);
m167 = new TextField(6);
m168 = new TextField(6);
m169 = new TextField(6);
m170 = new TextField(6);
m171 = new TextField(6);
m172 = new TextField(6);
m173 = new TextField(6);
m174 = new TextField(6);
m175 = new TextField(6);
m176 = new TextField(6);
m177 = new TextField(6);
m178 = new TextField(6);
m179 = new TextField(6);
m180 = new TextField(6);
m181 = new TextField(6);
m182 = new TextField(6);
m183 = new TextField(6);
m184 = new TextField(6);
m185 = new TextField(6);
m186 = new TextField(6);
m189 = new TextField(6);
m190 = new TextField(6);
m191 = new TextField(6);
m192 = new TextField(6);
m193 = new TextField(6);
m194 = new TextField(6);
m195 = new TextField(6);
m196 = new TextField(6);
m197 = new TextField(6);
m198 = new TextField(6);
m199 = new TextField(6);
m200 = new TextField(6);
m201 = new TextField(6);
m202 = new TextField(6);
m203 = new TextField(6);
m204 = new TextField(6);
m205 = new TextField(6);
m206 = new TextField(6);
m207 = new TextField(6);
m208 = new TextField(6);
m209 = new TextField(6);
m210 = new TextField(6);
m211 = new TextField(6);
m212 = new TextField(6);
m213 = new TextField(6);
m214 = new TextField(6);
m215 = new TextField(6);
m216 = new TextField(6);
m217 = new TextField(6);
m218 = new TextField(6);
m219 = new TextField(6);
m220 = new TextField(6);
m221 = new TextField(6);
m222 = new TextField(6);
m223 = new TextField(6);
m224 = new TextField(6);
m225 = new TextField(6);
m226 = new TextField(6);
m227 = new TextField(6);
m228 = new TextField(6);
m229 = new TextField(6);
m230 = new TextField(6);
m231 = new TextField(6);
m232 = new TextField(6);
m233 = new TextField(6);
m234 = new TextField(6);
m235 = new TextField(6);
m236 = new TextField(6);
m237 = new TextField(6);
m238 = new TextField(6);
m239 = new TextField(6);
m240 = new TextField(6);
m241 = new TextField(6);
m242 = new TextField(6);
m243 = new TextField(6);
m244 = new TextField(6);
m245 = new TextField(6);
m246 = new TextField(6);
m247 = new TextField(6);
m248 = new TextField(6);
m249 = new TextField(6);
m250 = new TextField(6);
m251 = new TextField(6);
m252 = new TextField(6);
m253 = new TextField(6);
m254 = new TextField(6);
m255 = new TextField(6);
m256 = new TextField(6);
m257 = new TextField(6);
m258 = new TextField(6);
m259 = new TextField(6);
m260 = new TextField(6);
m261 = new TextField(6);
m262 = new TextField(6);
m263 = new TextField(6);
m264 = new TextField(6);
m265 = new TextField(6);
m266 = new TextField(6);
m267 = new TextField(6);
m268 = new TextField(6);
m269 = new TextField(6);
m270 = new TextField(6);
m271 = new TextField(6);
m272 = new TextField(6);
m273 = new TextField(6);
m274 = new TextField(6);
m275 = new TextField(6);
m276 = new TextField(6);
m277 = new TextField(6);
m278 = new TextField(6);
m279 = new TextField(6);
m280 = new TextField(6);
m281 = new TextField(6);
m282 = new TextField(6);
m283 = new TextField(6);
m284 = new TextField(6);
m285 = new TextField(6);
m286 = new TextField(6);
m287 = new TextField(6);
m288 = new TextField(6);
m289 = new TextField(6);
m290 = new TextField(6);
m291 = new TextField(6);
m292 = new TextField(6);
m293 = new TextField(6);
m294 = new TextField(6);
m295 = new TextField(6);
m296 = new TextField(6);
m297 = new TextField(6);
m298 = new TextField(6);
m299 = new TextField(6);
m300 = new TextField(6);
m301 = new TextField(6);
m302 = new TextField(6);
m303 = new TextField(6);
m304 = new TextField(6);
m305 = new TextField(6);
m306 = new TextField(6);
m307 = new TextField(6);
m308 = new TextField(6);
m309 = new TextField(6);
m310 = new TextField(6);
m311 = new TextField(6);
m312 = new TextField(6);
m313 = new TextField(6);
m314 = new TextField(6);
m315 = new TextField(6);
m316 = new TextField(6);
m317 = new TextField(6);
m318 = new TextField(6);
m319 = new TextField(6);
m320 = new TextField(6);
m321 = new TextField(6);
m322 = new TextField(6);
m323 = new TextField(6);
m324 = new TextField(6);
m325 = new TextField(6);
m326 = new TextField(6);
m327 = new TextField(6);
m328 = new TextField(6);
m329 = new TextField(6);
m330 = new TextField(6);
m331 = new TextField(6);
m332 = new TextField(6);
m333 = 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);
add(f10);
add(m10);
add(f11);
add(m11);
add(f12);
add(m12);
add(f13);
add(m13);
add(f14);
add(m14);
add(f15);
add(m15);
add(f16);
add(m16);
add(f17);
add(m17);
add(f18);
add(m18);
add(f19);
add(m19);
add(f20);
add(m20);
add(f21);
add(m21);
add(f22);
add(m22);
add(f23);
add(m23);
add(f24);
add(m24);
add(f25);
add(m25);
add(f26);
add(m26);
add(f27);
add(m27);
add(f28);
add(m28);
add(f29);
add(m29);
add(f30);
add(m30);
add(f31);
add(m31);
add(f32);
add(m32);
add(f33);
add(m33);
add(f34);
add(m34);
add(f35);
add(m35);
add(f36);
add(m36);
add(f37);
add(m37);
add(f38);
add(m38);
add(f39);
add(m39);
add(f40);
add(f40);
add(m41);
add(f41);
add(m42);
add(f42);
add(m43);
add(f43);
add(m44);
add(f44);
add(m45);
add(f45);
add(m46);
add(f46);
add(m47);
add(f47);
add(m48);
add(f48);
add(m49);
add(f49);
add(m50);
add(f50);
add(m51);
add(f51);
add(m52);
add(f52);
add(m53);
add(f53);
add(m54);
add(f54);
add(m55);
add(f55);
add(m56);
add(f56);
add(m57);
add(f57);
add(m58);
add(f58);
add(m59);
add(f59);
add(f60);
add(m60);
add(f61);
add(m61);
add(f62);
add(m62);
add(f63);
add(m63);
add(f64);
add(m64);
add(f65);
add(m65);
add(f66);
add(m66);
add(f67);
add(m67);
add(f68);
add(m68);
add(f69);
add(m69);
add(f70);
add(m70);
add(f71);
add(m71);
add(f72);
add(m72);
add(f73);
add(m73);
add(f74);
add(m74);
add(f75);
add(m75);
add(f76);
add(m76);
add(f77);
add(m77);
add(f78);
add(m78);
add(f79);
add(f79);
add(m80);
add(f80);
add(m81);
add(f81);
add(m82);
add(f82);
add(m83);
add(f83);
add(m84);
add(f84);
add(m85);
add(f85);
add(m86);
add(f86);
add(m87);
add(f87);
add(m88);
add(f88);
add(m89);
add(f89);
add(m90);
add(f90);
add(m91);
add(f91);
add(m92);
add(f92);
add(m93);
add(f93);
add(m94);
add(f94);
add(m94);
add(f95);
add(m95);
add(f96);
add(m96);
add(f97);
add(m97);
add(f98);
add(m98);
add(f99);
add(m99);
add(f101);
add(m101);
add(f102);
add(m102);
add(f103);
add(m103);
add(f104);
add(m104);
add(f105);
add(m105);
add(f106);
add(m106);
add(f107);
add(m107);
add(f108);
add(m108);
add(f109);
add(m109);
add(f110);
add(m110);
add(f111);
add(m111);
add(f112);
add(m112);
add(f113);
add(m113);
add(f114);
add(m114);
add(f115);
add(m115);
add(f116);
add(m116);
add(f117);
add(m117);
add(f118);
add(m118);
add(f119);
add(m119);
add(f120);
add(m120);
add(f121);
add(m121);
add(f122);
add(m122);
add(f123);
add(m123);
add(f124);
add(m124);
add(f125);
add(m125);
add(f126);
add(m126);
add(f127);
add(m127);
add(f128);
add(m128);
add(f129);
add(m129);
add(f130);
add(m130);
add(f131);
add(m131);
add(f132);
add(m132);
add(f133);
add(m133);
add(f134);
add(m134);
add(f135);
add(m135);
add(f136);
add(m136);
add(f137);
add(m137);
add(f138);
add(m138);
add(f139);
add(m139);
add(f140);
add(m140);
add(f141);
add(m141);
add(f142);
add(m142);
add(f143);
add(m143);
add(f144);
add(m144);
add(f145);
add(m145);
add(f146);
add(m146);
add(f147);
add(m147);
add(f148);
add(m148);
add(f149);
add(m149);
add(f150);
add(m150);
add(f151);
add(m151);
add(f152);
add(m152);
add(f153);
add(m153);
add(f154);
add(m154);
add(f155);
add(m155);
add(f156);
add(m156);
add(f157);
add(m157);
add(f158);
add(m158);
add(f159);
add(m159);
add(f160);
add(m160);
add(f161);
add(m161);
add(f162);
add(m162);
add(f163);
add(m163);
add(f164);
add(m164);
add(f165);
add(m165);
add(f166);  
add(m166);
add(f167);
add(m167);
add(f168);
add(m168);
add(f169);
add(m169);
add(f170);
add(m170);
add(f171);
add(m171);
add(f172);
add(m172);
add(f173);
add(m173);
add(f174);
add(m174);
add(f175);
add(m175);
add(f176);
add(m176);
add(f177);
add(m177);
add(f178);
add(m178);
add(f179);
add(m179);
add(f180);
add(m180);
add(f181);
add(m181);
add(f182);
add(m183);
add(f184);
add(m184);
add(f185);
add(m185);
add(f186);
add(m186);
add(f187);
add(m187);
add(f188);
add(m188);
add(f189);
add(m189);
add(f190);
add(m190);
add(f191);
add(m191);
add(f192);
add(m192);
add(f193);
add(m193);
add(f194);
add(m194);
add(f195);
add(m195);
add(f196);
add(m196);
add(f197);
add(f197);
add(f198);
add(m198);
add(f199);
add(m199);
add(f200);
add(m200);
add(f201);
add(m201);
add(f22);
add(m202);
add(f203);
add(m203);
add(f204);
add(m204);
add(f205);
add(m205);
add(f206);
add(m206);
add(f207);
add(m207);
add(f208);
add(m208);
add(f209);
add(m209);
add(f210);
add(m210);
add(f211);
add(m211);
add(f212);
add(m212);
add(f213);
add(m213);
add(f214);
add(m214);
add(f215);
add(m215);
add(f216);
add(m216);
add(f217);
add(m217);
add(f218);
add(m218);
add(f219);
add(m219);
add(f220);
add(m220);
add(f221);
add(m221);
add(f222);
add(m222);
add(f223);
add(m223);
add(f224);
add(m224);
add(f225);
add(m225);
add(f226);
add(m226);
add(f227);
add(m227);
add(f228);
add(m228);
add(f229);
add(m229);
add(f230);
add(m230);
add(f231);
add(m231);
add(f232);
add(m232);
add(f233);
add(m233);
add(f234);
add(m234);
add(f235);
add(m235);
add(f236);
add(m236);
add(f237);
add(m237);
add(f238);
add(m238);
add(f239);
add(m239);
add(f240);
add(m240);
add(f241);
add(m241);
add(f242);
add(m242);
add(f243);
add(m243);
add(f244);
add(m244);
add(f245);
add(m245);
add(f246);
add(m246);
add(f247);
add(m247);
add(f248);
add(m248);
add(f249);
add(m249);
add(f250);
add(m250);
add(f251);
add(m251);
add(f252);
add(m252);
add(f253);
add(m253);
add(f254);
add(m254);
add(f255);
add(m255);
add(f256);
add(m256);
add(f257);
add(m257);
add(f258);
add(m258);
add(f259);
add(m259);
add(f260);
add(m260);
add(f261);
add(m261);
add(f262);
add(m262);
add(f263);
add(m263);
add(f264);
add(m264);
add(f265);
add(m265);
add(f266);
add(m266);
add(f277);
add(m277);
add(f278);
add(m278);
add(f279);
add(m279);
add(f280);
add(m280);
add(f281);
add(m281);
add(f282);
add(m282);
add(f283);
add(m283);
add(f284);
add(m284);
add(f285);
add(m285);
add(f286);
add(m286);
add(f287);
add(m287);
add(f287);
add(m288);
add(f289);
add(m289);  
add(f290);
add(m290);
add(f291);
add(m291);
add(f292);
add(m292);
add(f293);
add(m293);
add(f294);
add(m294);
add(f295);
add(m295);
add(f296);
add(m296);
add(f297);
add(m297);
add(f298);
add(m298);
add(f299);
add(m299);
add(f300);
add(m301);
add(f301);
add(m301);
add(f302);
add(m302);
add(f303);
add(m303);
add(f304);
add(m304);
add(f305);
add(m305);
add(f306);
add(m306);
add(f307);
add(m307);
add(f308);
add(m308);
add(f309);
add(m309);
add(f310);
add(m310);
add(f311);
add(m311);
add(f312);
add(m312);
add(f313);
add(m313);
add(f314);
add(m314);
add(f315);
add(m315);
add(f316);
add(m316);
add(f317);
add(m317);
add(f318);
add(m318);
add(f319);
add(m319);
add(f320);
add(m320);
add(f321);
add(m321);
add(f322);
add(m322);
add(f323);
add(m323);
add(f324);
add(m324);
add(f325);
add(m325);
add(f326);
add(m326);
add(f327);
add(m327);
add(f328);
add(m328);
add(f329);
add(m329);
add(f330);
add(m330);
add(f331);
add(m331);
add(f332);
add(m332);
add(f333);
add(m333);


}
}

and the exact error displayed in cmd is

java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:341)
at java.awt.Container.add(Container.java:228)
at Wordlist.init(Wordlist.java:1073)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)

I think i'll have to work with panels.

You missed a few field initializations, 187 and 188 are null:

m185 = new TextField(6);
m186 = new TextField(6);
m189 = new TextField(6);
m190 = new TextField(6);

You would save yourself a lot of trouble and typing by putting these into arrays or vectors.

int numberOfFields = 333;
Label[] labels = new Label[numberOfFields];
TextField[] fields = new TextField[numberOfFields];
for (int i=0; i<numberOfFields; i++){
  labels[i] = new Label(" ", Label.LEFT);
  fields[i] = new TextField(6);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.