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

📄 mysuperapplet.java

📁 learning java的源代码。书中每个实例都有相关的代码example。
💻 JAVA
字号:
//file: MySuperApplet.javaimport java.applet.Applet;import java.awt.*;import javax.swing.*;public class MySuperApplet extends JApplet {    // applet's own code, including constructor    // and init() and start(  ) methods    public static void main( String [] args ) {        // instantiate the applet        JApplet theApplet = new MySuperApplet(  );        // create a window for the applet to run in        JFrame theFrame = new JFrame(  );        theFrame.setSize(200,200);        // place the applet in the window        theFrame.getContentPane(  ).add("Center", theApplet);        // start the applet        theApplet.init(  );        theApplet.start(  );        // display the window        theFrame.setVisible(true);    }}

⌨️ 快捷键说明

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