@Override public void appletResize(int width, int height) { // Change the frame's size by the same amount that the applet's // size is changing. Dimension frameSize = getSize(); frameSize.width += width - appletSize.width; frameSize.height += height - appletSize.height; setSize( frameSize ); appletSize = applet.getSize(); }
@Override public void appletResize( int width, int height ) { // Change the frame's size by the same amount that the applet's // size is changing. Dimension frameSize = getSize(); frameSize.width += width - appletSize.width; frameSize.height += height - appletSize.height; setSize( frameSize ); appletSize = applet.getSize(); }
Dimension d = ai.getSize(); d.height += aa.getSize().height; f.setSize(d);
appletSize = applet.getSize(); applet.setSize( width, height ); setVisible(true);
appletSize = applet.getSize(); applet.setSize( width, height ); setVisible(true);