Re: program works but wont display in browser




<andrewtitus@xxxxxxxxxx> wrote in message news:PbSdnQUIhcJ7PJnZRVn-og@xxxxxxxxxxxxxxx
It works right but buttons dont display until I move mouse over them and the
main problem Iam having is when I upload WebApplet.class to server and try
and display in web page I get a

exception: java.lang.nullPointerException error and the applet will not
load. Not sure why this is happening.

Usually exceptions are accompanied with a stack trace which have line numbers. If you could post the line numbers, it'd be easier to determine where the null pointer exception is occurring. If you know how to use the applet viewer, you might want to use that instead of a full fledge web browser.

Otherwise, look in your browser for a feature to display the "Java Console"; that should show a text box with the stacktrace present.

- Oliver

.


Quantcast