Applet Changes in 1.5_03 SDK?



Hello Everyone,
 
I recently installed NetBeans 4.1 and the latest JDK (build 1.5.0_03-b07).
I have been working out of a text book from SNHU programming an applet that is a calculator.  My problem is when the applet executes, both in the browser and applet viewer, the paint method goes into a viscous loop that never ends..
Has something changed with this latest JVM?  Am I missing something? 
 
The code :
 
    public void paint(Graphics g) {
        resize(row1.getWidth(), 8*d1.getHeight());
        validate();
    }
row1 is a Panel and d1 is a Button object.
 
 
I have attached the complete code for the interface to this post.  Any help would be greatly appreciated.
 
Jason
 

Attachment: CalculatorApplet.java
Description: Binary data


Quantcast