编程老师画(少儿编程老师招聘)

2023-11-12 13:29:39 数码极客 bianji01

 

Java编程 画画 人生

import java.awt.button;import java.awt.flowlayout;import java.awt.frame;import java.awt.label;import java.awt.event.actionevent;import java.awt.event.actionlistener;import java.awt.event.windowadapter;import java.awt.event.windowevent;/** * 编程包含一个标签和一个按钮,单击按钮时,标签的内容在“你好”和“再见”之间切换。 * @author administrator * */public class button_label extends frame implements actionlistener{ button bt = new button("确定"); string s = "你好"; string s1 = "再见"; label lb = new label(s); public static void main(string []args) { new button_label().launch(); } public void launch() { this.setsize(300, 300); this.setlocation(200, 100); this.setlayout(new flowlayout()); this.add(bt); this.add(lb); this.setvisible(true); bt.addactionlistener(this); this.addwindowlistener(new windowadapter() {@overridepublic void windowclosing(windowevent arg0) {system.exit(0);} }); } @override public void actionperformed(actionevent e) { if(e.getsource() == bt) {if(lb.gettext() == s) {lb.settext(s1);}else {lb.settext(s);} } }}

VB编程,画函数

貌似用picturebox内的画点函数就有吧,记得先定义矩阵范围,然后输入表达式循环n次每次x递增0.01画点就有了

声明:易趣百科所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系315127732@qq.com
广告位招租
横幅广告