Re: Applet Changes in 1.5_03 SDK?



Thanks Noem,

The Author of this book was trying to introduce layout managers and event
handling. I even used his code and got the same results. After some
snooping I found a slightly different workaround.. I just overrode the
start() method and called setSize() method with the parameters used in the
resize method... I also junked the validate call.
I should have guessed that there would be more problems with the book.. I
was very disappointed with the class that I took, it wasn't challenging at
all. I come from a C/C++ background and I expected the course to cover GUI
based OO application development, but I couldn't have been more wrong... The
entire course just used console apps to rehash every simple concept I have
ever had in other languages..
Picking out the authors errors and figuring out what needs to be done to fix
them is more satisfying.


J

"Noem" <sluwel@xxxxxxxxx> wrote in message
news:d7g3dk$4tm$1@xxxxxxxxxxxxxxxxxxxxx
> Applets... the final frontier! I haven't even touched applets in months,
> so
> here goes...
>
> I have no idea why it would do that. But it's got something to do with
> refreshing the screen obviously. After commenting out all the instructions
> in the paint() method and running the applet with a specified width of 150
> pixels in the HTML file it seems to work fine.
>
> <APPLET CODE="CalculatorApplet.class" WIDTH=150 HEIGHT=250></APPLET>
>
>
> Regards
>
> --
> Ewald Horn
> Business Manager
> NoFuss Solutions
> South Africa / Suid Afrika
> Tel : +27 (0)83 305 3556
> Web : http://www.nofusspos.com
> Email / E-pos : ewald@xxxxxxxxxxxxx
>
>


.