摘要: 如何加入自己定义的Panel 阅读全文
posted @ 2016-08-28 14:48 Ren.Yu 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 这个例子演示了如何给BUTTON设置click之后的响应函数 阅读全文
posted @ 2016-08-28 09:30 Ren.Yu 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 如果不设置frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);则窗口关闭后进程不能退出 button也可以设置setVisible来控制是否显示 阅读全文
posted @ 2016-08-28 08:35 Ren.Yu 阅读(119) 评论(0) 推荐(0) 编辑
摘要: observer.h quack_observable.h duck.h observable.h mallard_duck.h redhead_duck.h duck_call.h rubber_duck.h countable_duck.h countable_duck.cpp ivector. 阅读全文
posted @ 2016-06-19 18:44 Ren.Yu 阅读(273) 评论(0) 推荐(0) 编辑
摘要: grid.h sudoku.h main.cpp 阅读全文
posted @ 2016-06-10 01:40 Ren.Yu 阅读(1455) 评论(0) 推荐(1) 编辑
摘要: menu_component.h menu_item.h menu.h ivector.h main.cpp 阅读全文
posted @ 2016-06-09 17:23 Ren.Yu 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-06-05 13:42 Ren.Yu 阅读(138) 评论(0) 推荐(0) 编辑
摘要: iterator.h menu.h diner_menu.h pancake_house_menu.h main.cpp 阅读全文
posted @ 2016-06-03 21:28 Ren.Yu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: iterator.h menu_item.h pancake_house_menu.h main.cpp 阅读全文
posted @ 2016-06-03 00:30 Ren.Yu 阅读(454) 评论(0) 推荐(0) 编辑
摘要: state.h gumball_machine.h 说明:这里之所有要把SoldOutState等状态定义在GumballMachine类之中是因为两者之间有相互的依赖,暂时没有想到其他的解决方法。 main.cpp 阅读全文
posted @ 2016-05-15 21:18 Ren.Yu 阅读(570) 评论(0) 推荐(0) 编辑