Search:

Type: Posts; User: Baboop

Search: Search took 0.14 seconds.

  1. Replies
    5
    Views
    1,024

    Re: Wont display the rectangle.

    like this?


    import java.awt.Graphics;
    import javax.swing.JApplet;
    import javax.swing.JOptionPane;

    public class drawRectangle extends JApplet
    {
    public int x;
  2. Replies
    5
    Views
    1,024

    Re: Wont display the rectangle.

    how would i go about assigning the values for the rectangle in this particular instance?
  3. Replies
    5
    Views
    1,024

    Wont display the rectangle.

    allows for user input of the 4 values (x, y, width, height) but it wont draw the rectangle with those values.


    import java.awt.Graphics;
    import javax.swing.JApplet;
    import...
Results 1 to 3 of 3