Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
Ebook
/
Informatique
/
JAVA
/
Source_TLS
/
Move
:
MyLine.java
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
package toto; import java.awt.*; public class MyLine extends MyShape { // constructor public MyLine(int firstX,int firstY,int secondX,int secondY,Color shapeColor ) { super( firstX, firstY, secondX, secondY, shapeColor ); } // end constructor // draw a line public void draw( Graphics g ) { g.setColor( getColor() ); g.drawLine( getX1(), getY1(), getX2(), getY2() ); } // end method draw }// end class MyLine