#! /bin/sed -f # updateAWT: Update from deprecated 1.0 AWT method names to new 1.1 names # # Usage: updateAWT old-file > new-file # # Example: updateAWT MyClass.java > tmp.java # In this example, tmp.java should eventually be renamed to # MyClass.java once the conversion has been looked over for accuracy. # Bug fixes (1/7/97): # - fixed erroneous double left paren that prevented enable, # disable, show, and hide from being changed # - added show() --> setVisible() # - added enable() --> setEnabled() # - added getBoundingBox --> getBounds for Polygon class # - added getClipRect --> getClipBounds for Graphics class # - removed size --> getSize because of conflict with Vector class # Component: # - The ordering of the two "enable" lines should not be switched. # - The ordering of the two "show" lines should not be switched. # - Don't change size to getSize because of the same name occurs in # Vector and possibly other classes: # s/\