📄 zhe.java~15~
字号:
package statistics;import java.awt.*;import java.awt.event.*;import java.applet.*;public class zhe extends Applet { int x[]={10,60,110,160,210,260}; int y[]={40,100,250,90,30,200};public void paint(Graphics g){g.setColor(Color.blue);g.drawLine(10,20,10,280);g.drawLine(10,280,280,280);g.drawLine(5,25,10,20);g.drawLine(10,20,15,25);g.drawLine(275,275,280,280);g.drawLine(275,285,280,280);g.setColor(Color.white);g.drawPolyline(x,y,6);g.setColor(Color.red);g.drawString("甲厂",15,35);} 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); } /**Construct the applet*/ public zhe() { } /**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 + -