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

📄 applettest.java

📁 里面包含很多c语言的源码
💻 JAVA
字号:
import java.applet.Applet;
import java.awt.*;

public class AppletTest extends Applet {
  Font f = new Font("TimesRoman", Font.BOLD, 36);
  boolean useRed = true;

  public void paint(Graphics screen) {
      screen.setFont(f);
      if (useRed)
         screen.setColor(Color.red);
      else
         screen.setColor(Color.blue);
      screen.drawString("This is an applet!", 5, 30);
  }

  public boolean mouseDown(Event evt, int x, int y) {
      useRed = !useRed;
      repaint();
      return true;
  }
}

⌨️ 快捷键说明

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