Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: Lab5-3 Download
 Description: Create a drawing application, randomly draw lines, rectangles and ellipses. Create a set of flexible shape classes. If you provide a Graphics object for these classes, the drawing position to tell them, they will know how to draw itself. The class name should be MyLine, MyRect and MyOval (Tip: You can have a common parent class MyShape). Using a random number to the position and shape of the shape type. Randomly create 20 MyLine, MyOval and MyRect class object, and then call the draw method of the graphic display it.
 Downloaders recently: [More information of uploader 夏花]
 To Search:
File list (Check if you may need any files):
 

Lab5-3\.classpath
......\.project
......\bin\lab5_3\MainClass.class
......\...\......\MyLine.class
......\...\......\MyOval.class
......\...\......\MyPanel.class
......\...\......\MyRect.class
......\...\......\MyShape.class
......\lab5-3.jar
......\src\lab5_3\MainClass.java
......\...\......\MyLine.java
......\...\......\MyOval.java
......\...\......\MyPanel.java
......\...\......\MyRect.java
......\...\......\MyShape.java
......\bin\lab5_3
......\src\lab5_3
......\bin
......\src
Lab5-3
    

CodeBus www.codebus.net