java实验10(ChangeBallColor)

时间:2014-01-31 14:16:32
【文件属性】:

文件名称:java实验10(ChangeBallColor)

文件大小:5KB

文件格式:RAR

更新时间:2014-01-31 14:16:32

ChangeBallColor

Create an application ChangeBallColor that displays a panel. This panel will contain two buttons (one for red and one for blue). It will also display a filled in circle. When the user clicks on a button, the circle should change to that color. So, if a user clicks the blue button, the circle will change to blue. Similarly, if a user clicks the red button, the circle will turn to red.


【文件预览】:
实验10
----.project(384B)
----bin()
--------ChangeBallColor.class(574B)
--------MyPanel.class(2KB)
--------MainFrame.class(817B)
----.settings()
--------org.eclipse.jdt.core.prefs(629B)
----src()
--------MainFrame.java(467B)
--------MyPanel.java(1KB)
--------ChangeBallColor.java(304B)
----.classpath(301B)

网友评论

  • 该程序不错,很好,准确无误,优秀程序。
  • 东西不错,写的很正确
  • 感觉界面有一点小小的不满意,自己改了一下,整体写的很好
  • 对于java初学者很不错的事件处理案例程序哦~~
  • 很不错,代码简单易懂,谢谢~~
  • 鼠标点击不同颜色按钮显示不同颜色,虽然只有两个选项但是也显示了事件处理的概念,还可以的一个小程序