正在加载图片...
Program MyFirstApplication Program MyFirstApplication This program displays a window on the screen. The window i positioned at the center of the screen, and the size of the almost as big as the screen class MyFirstApplication public static void main(string[] args) Mainwindow mainwindow Declare a name mainWindow new Mainwindow()i create an object lainWindow. setvisible( true )i Make it visible C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 2-4© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 2 - 4 Program MyFirstApplication /* Program MyFirstApplication This program displays a window on the screen. The window is positioned at the center of the screen, and the size of the window is almost as big as the screen. */ import javabook.*; class MyFirstApplication { public static void main(String[ ] args) { MainWindow mainWindow; mainWindow = new MainWindow(); mainWindow.setVisible( true ); } } Declare a name Create an object Make it visible
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有