📄 test.java
字号:
import java.awt.*;
import javax.swing.*;
public class Test extends JApplet {
ColorIcon redIcon = new ColorIcon(Color.red, 50, 50),
blueIcon = new ColorIcon(Color.blue, 60, 60),
yellowIcon = new ColorIcon(Color.yellow, 70, 70);
public void paint(Graphics g) {
redIcon.paintIcon(this, g, 0, 0);
blueIcon.paintIcon(this, g,
redIcon.getIconWidth() + 10, 0);
yellowIcon.paintIcon(this, g,
redIcon.getIconWidth() + 10 +
blueIcon.getIconWidth() + 10, 0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -