?? drawimage.java
字號:
/*
* @(#)DrawImage.java 1.0 06/03/05
*
* You can modify the template of this file in the
* directory ..\JCreator\Templates\Template_2\Project_Name.java
*
* You can also create your own project template by making a new
* folder in the directory ..\JCreator\Template\. Use the other
* templates as examples.
*
*/
import java.awt.*;
import java.applet.*;
public class DrawImage extends Applet {
Image im;
public void init() {
getImage(getCodeBase(),"flower.jpg");
}
public void paint(Graphics g) {
//g.drawString("Welcome to Java!!", 50, 60 );
g.drawImage(im,0,0,this);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -