Code /* Deprecated1.java David Klick CIS 260 1/19/2005 Demonstration of using deprecated methods (the size and resize methods are deprecated). Try compiling the program with then "-deprecation" option to get more info: javac -deprecation Deprecation.java */ import javax.swing.*; import java.awt.Dimension; public class Deprecated1 { public static void main(String[] args) { JOptionPane msg = new JOptionPane("Hello, world!"); Dimension d = msg.size(); System.out.println(d.width + ", " + d.height); msg.resize(new Dimension(d.width+150, d.height+100)); d = msg.size(); System.out.println(d.width + ", " + d.height); System.exit(0); } }