Search:

Type: Posts; User: havinFun

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    2,047

    Re: Moving a shape across a panel

    OK, so I looked at the API doc for JSlider, from what I get I am supposed to create a method getValue() create an int that will grab slider.getValue. Am I on the right track? Then I will return...
  2. Replies
    9
    Views
    2,047

    Re: Moving a shape across a panel

    I do not want the size to ever change. I am not sure where I want the value to change of the shape, am I going to reference the center of the shape or the x and y position (top left corner of...
  3. Replies
    9
    Views
    2,047

    Re: Moving a shape across a panel

    the setD is to make sure that the radius is never a negative number and if it is then default to a radius of 10, but I see now that I am hard coding the size of the circle so I should need to have...
  4. Replies
    9
    Views
    2,047

    Re: Moving a shape across a panel

    Sorry, didn't realize that my imports were missing, here is the complete code:
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import java.awt.Font;
    import...
  5. Replies
    9
    Views
    2,047

    Moving a shape across a panel

    Since I am pretty new to Java I have encountered some very trivial problems. I am working harder than I thought I would just to stay up with my class, but beyond that I need some help determining...
Results 1 to 5 of 5