正在加载图片...
The Applet Class, cont Applets are created, run, and destroyed by web browser Dont set size for an applet: determined by html file Dont set title for an applet: applets cannot have title bars Can have menus No need to explicitly construct an applet. Construction code placed inside the init method There is no main method An applet cannot be closed. It terminates automatically when the browser No need to call method show An applet is displayed automatically Liang, Introduction to Java Programming, Sixth Edition, (c)2005 Pearson Education, Inc. All rights reserved. 0-13-148952-6Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved. 0-13-148952-6 7 The Applet Class, cont. Applets are created, run, and destroyed by web browser – Don’t set size for an applet: determined by HTML file. – Don’t set title for an applet: applets cannot have title bars. Can have menus. – No need to explicitly construct an applet. Construction code placed inside the init method. – There is no main method. – An applet cannot be closed. It terminates automatically when the browser exit. – No need to call method show. An applet is displayed automatically
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有