applet.show()

Note: C:\Documents and Settings\2z7\TestCell4\src\Combox.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

JFrame appletFrame =new JFrame("My Applet");

Applet theApplet =new Combox();

appletFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

appletFrame.setSize(800,800);

appletFrame.add(theApplet,"Center");// applet fills

// frame

/* Now start invoking applet methods. */

theApplet.init();

appletFrame.show();// bring frame and initialized

How to change it?

Thanks

[836 byte] By [ardmorea] at [2007-11-27 10:06:21]
# 1
read the API docs for JFrame...show() has been replaced by setVisible(boolean)
MaxxDmga at 2007-7-13 0:42:32 > top of Java-index,Desktop,Core GUI APIs...