⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 img1.java~70~

📁 很好得jbuilder100例源代码
💻 JAVA~70~
字号:
package img;import java.awt.*;import java.awt.event.*;import java.applet.*;import com.borland.jbcl.layout.*;import javax.swing.*;public class img1 extends Applet {  Image myImg;  public void init(){    myImg=getImage(getCodeBase(),"qingchengshan1.jpg");  }  public void paint(Graphics g){     int x = myImg.getWidth(this);     int y = myImg.getHeight(this);     g.drawImage(myImg,(150-(int)(x/2),(150-(int)(y/2),(int)(x*1),(int)(y*1),this);  }  boolean isStandalone = false;  XYLayout xYLayout1 = new XYLayout();  /**Get a parameter value*/  public String getParameter(String key, String def) {    return isStandalone ? System.getProperty(key, def) :      (getParameter(key) != null ? getParameter(key) : def);  }  /**Construct the applet*/  public img1() {  }  /**Initialize the applet*/  /**Component initialization*/  private void jbInit() throws Exception {    this.setLayout(xYLayout1);  }  /**Get Applet information*/  public String getAppletInfo() {    return "Applet Information";  }  /**Get parameter info*/  public String[][] getParameterInfo() {    return null;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -