View RSS Feed


Entries with no category

  1. Help centering the square inside

    by , 09-14-2013 at 12:40 AM
    Quote Originally Posted by Messi5454 View Post
    I emailed the instructor my code and he said the only thing i have to do is center my inner square .
    i attached picture
    Attachment 5522

    Java Code:
    import java.awt.*;
    import javax.swing.*;
    // begining of the Gepmetry class
    // geometry class uses JFrame to draw the window and 
    // geometric shapes  
    public class Hw2  extends JFrame {
    //Variables to use for drawing 3 shapes.