[4775] in java-interest

home help back first fref pref prev next nref lref last post

Error in the ButtonExample in the Hooked on Java book

daemon@ATHENA.MIT.EDU (Fritz N. Francis)
Sun Jan 14 03:08:19 1996

To: java-interest@java.sun.com
From: fritz@environs.com (Fritz N. Francis)
Date: Fri, 12 Jan 1996 19:51:59 -0500


Hello,

I posted a question earlier about the ButtonExample.java source code 
that was provided in the Hooked on Java book on page 131. 
Basically,  David Geary answered my question. Since the method action is of
type boolean, it is expecting to return either "true" or "false". So the
line after Line 12 in the Hooked on Java book is incorrect, it should read:

return true;

or

return(true);

The other things that I am trying to do right now (and I could probably use
suggestions from everyone) are giving functionality to the window that is
produced by the ButtonExample.class file and transforming this standalone
application to being an applet. By functionality of the window, I mean that
I would like to be able to close the window, maximize it, minimize it, etc. 

Fritz


P.S. David, thanks for your reply, it saved me from pulling out what little
hair I have left on my head. I am still a little confused on that
construction but I will look at the API and see if I can get information.

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post