?? pic.java~11~
字號:
package statistics;import java.awt.*;import java.awt.event.*;import java.applet.*;public class pic extends Applet { Color color1=new Color(255,0,0); Color color2=new Color(0,255,0); Color color3=new Color(0,0,255); boolean isStandalone = false; /**Get a parameter value*/ public String getParameter(String key, String def) { return isStandalone ? System.getProperty(key, def) : (getParameter(key) != null ? getParameter(key) : def); } public void paint(Graphics g){ g.setColor(color1); g.drawString("統計圖",40,60); g.fillArc(100,100,100,100,0,30); g.setColor(color2); g.fillArc(100,100,100,100,30,170); g.setColor(color3); g.fillArc(100,100,100,100,200,160); } /**Construct the applet*/ public pic() { } /**Initialize the applet*/ public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } /**Component initialization*/ private void jbInit() throws Exception { } /**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 + -