正在加载图片...
Creating a Frame object 150 200 300 import Java. awt private static final int FRAME WIDTH 300; private static final int FRAME HEIGHT 200 private static final int FRAME X ORIGIN private static final int FRAME Y ORIGIN= 250i setsize FRAME WIDTH, FRAME HEIGHT rEsizable( fa etritle (Program MyFirstErame")i setlocation( FRAME X ORIGIN, FRAME Y ORIGIN C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 13-5© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 13 - 5 Creating a Frame Object import java.awt.*; class MyFirstFrame extends Frame { private static final int FRAME_WIDTH = 300; private static final int FRAME_HEIGHT = 200; private static final int FRAME_X_ORIGIN = 150; private static final int FRAME_Y_ORIGIN = 250; public MyFirstFrame( ) { setSize ( FRAME_WIDTH, FRAME_HEIGHT ); setResizable ( false ); setTitle ( "Program MyFirstFrame" ); setLocation ( FRAME_X_ORIGIN, FRAME_Y_ORIGIN ); } } 150 250 300 200
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有