home *** CD-ROM | disk | FTP | other *** search
- head 1.1;
- access;
- symbols;
- locks
- jgh8962:1.1; strict;
- comment @# @;
-
-
- 1.1
- date 98.04.13.23.33.29; author jgh8962; state Exp;
- branches;
- next ;
-
-
- desc
- @@
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @/**
- *
- * Ball.java
- * @@author Jeremy Hutchins (jgh8962@@cs.rit.edu)
- * @@version 1.0
- * Feb 23/1996
- *
- *
- *
- */
-
- import java.awt.*;
- import java.awt.event.*;
- import com.next.gt.*;
-
- public class WindowResizer extends ComponentAdapter {
-
- private DisplayManager displayManager;
- private Gamelication owner;
-
- public WindowResizer( DisplayManager displayManager, Gamelication owner ) {
- this.displayManager = displayManager;
- this.owner = owner;
- }
-
- public void componentResized(ComponentEvent e) {
- System.out.println( "componentResized called." );
- System.out.println( e.getComponent().getSize().toString() );
- owner.setSize( e.getComponent().getSize() );
- System.out.println( "owner's size is: " + owner.getSize().toString() );
- displayManager.setBackgroundTile (owner.getImage( owner.getCodeBase(), "images/background.gif"));
-
- }
-
-
-
-
- } /*Ball*/
- @
-