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

📄 testicon.java

📁 java绘图 java awt 经典绘图的例子,对于初学awt模块的人非常有帮助.
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package awt;import java.awt.Frame;import java.awt.Image;import java.awt.Label;import java.io.File;import java.io.IOException;import java.util.logging.Level;import java.util.logging.Logger;import javax.imageio.ImageIO;import javax.swing.Icon;import javax.swing.ImageIcon;import javax.swing.JLabel;/** * * @author zhaolin */public class TestIcon extends Frame{    JLabel label;    public TestIcon(){            label = new JLabel();            //ImageIcon icon = new ImageIcon("c:\\title.png");            label.setIcon(new MyIcon(20,20));            this.add(label);            this.setSize(300, 260);            this.setVisible(true);    }        public static void main(String[] args) {        new TestIcon();    }}

⌨️ 快捷键说明

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