资源简介
一元二次方程求解器!java图形界面!不长,100多行!
代码片段和文件信息
import java.awt.*;
import java.awt.event.*;
import java.awt.event.WindowEvent;
import javax.swing.*;
public class Find_root2 extends frame implements ActionListener{
int size=20;
Label labeltitle2lb1lb2lb3lb4lbxxlabelBottomlabelBottom2labelBottom_labelBottom__;
JLabel labeltitle1;
TextField in1in2in3;
Button btn;
double d1d2d3;
public Find_root2(String title){
super(title);
labelBottom2=new Label();labelBottom_=new Label();labelBottom__=new Label();
labeltitle1=new JLabel(“一元二次方程求根器“);
labeltitle1.setFont(new Font(“Serif“Font.PLAINsize));
labeltitle1.setHorizontalAlignment(SwingConstants.CENTER);
labeltitle2=new Label(“请在下面空白处分别填入相应x系数:“);
lb1=new Label(““);
lb2=new Label(“X^2+“);
- 上一篇:QR二维码jar包
- 下一篇:IKAnalyzer3.2.8.jar
评论
共有 条评论