摘要:        
简易计算器 oop原则:组合,大于继承 //简易计算器 public class Demo04 { public static void main(String[] args) { new Calculator(); } } //计算器类 class Calculator extends Frame    阅读全文
posted @ 2021-04-14 17:03
saxon宋
阅读(93)
评论(0)
推荐(0)
        
            
        
        
摘要:        
输入框事件监听TextField 输入框中输入的字,可以打印出来,并将输入的字全部删除。 public class Demo03 { public static void main(String[] args) { MyFrame myFrame = new MyFrame(); } } class    阅读全文
posted @ 2021-04-14 15:31
saxon宋
阅读(285)
评论(0)
推荐(0)
        
            
        
        
摘要:        
事件监听 当某个事件发生,会产生什么? public class Demo01 { public static void main(String[] args) { //按下按钮,触发事件 Frame frame = new Frame(); Button button = new Button()    阅读全文
posted @ 2021-04-14 10:14
saxon宋
阅读(49)
评论(0)
推荐(0)
        
 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号