I loaded this up and it compiled fine as you said.. but the applet wouldn''t initialize. Is that the prob you were having? If so your browser/viewer either doesn''t support the swing class or cant find your class file. I appended the html file and got it to open but wasn''t sure what you had planned from there. I did notice ya hadnt made the variables private. I was wondering if there was a reason for that>? Cant spend any mroe time looking at it at the moment .. trying to get my Card game going let me know if any of that helped.. I may have a chance again later
If ya need to know how to append the HTML let me know
what you do is: act.addActionListener(new DigiConverter());
this means... there is a new instance of the DigiConverter. And that''s why there is the Nullpointer Exception. What happens is, that you press the button, and actionPerformed(...) of the NEW instance is called. This instance doesn''t have ANY enteredString set, all variables are null, and... yeah, if they wouldn''t be null they at least wouldn''t have the information you want it to have.
Simply write act.addActionListener(this); and it will work. I mean... there will be no Exception anymore, didn''t have a look at what the program really does (or doesn''t).