摘要:
求长方形的面积和周长,GUI。运行结果:代码: 1 import java.awt.*; 2 import java.awt.event.*; 3 import javax.swing.*; 4 5 public class Test 6 { 7 public static void main(String[] args) 8 { 9 new OblongGUI(); 10 } 11 } 12 13 class OblongGUI extends JFrame implements ActionListener 14 { 15... 阅读全文