云南大学软件学院
实验报告
姓名:王增伟学号:20111120083 班级:软件工程日期:2014.11.11成绩:
JAVA实验八
一、实验目的:
熟悉图形化界面编程,学会用程序画简单的图形、书写文字、设置颜色等。
二、实验要求:
Part1:
Create an application DisplayNames that displays your name in every even-numbered font from size 4 to 24. Make the color red.
You should create 3 classes named:
?DrawNamesTest.java
?NamesFrame.java
?NamesPanel.java
Part2:
Create an application ShapesTest that displays various shapes in various colors.
? a line in black color
? a circle in green color
? a rectangle in orange color
Use the lecture notes for a guide.
You should create 3 classes named:
?ShapesTest.java
?ShapesFrame.java
?ShapesPanel.java