import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Calculate{ private Frame f; private Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16; private Panel p1,p2; public static void main(String args[]){ Calculate cte=new Calculate(); cte.go(); }public ...
import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Calculate{ private Frame f; private Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16; private Panel p1,p2; public static void main(String args[]){ Calculate cte=new Calculate(); cte.go(); }public ...
//图形用户界面之一import java.awt.*;public class Add extends Frame{public Add(String s){ super(s); } public static void main(String args[]){ Add m=new Add("Frame with Panel"); Panel p=new Panel(); m.setSize(400,400); m.setBackground(Color.blue); m.setLayout(null); p.setSize(200,200...
import java.awt.*;public class A extends Frame{public A(String s){ super(s); } public static void main(String args[]){ A m=new A("Hello FlowLayout"); m.setSize(400,400); m.setBackground(Color.blue); Panel p=new Panel(); p.setSize(200,200); p.setBackground(Color.yellow); m.setLa...