Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.19 seconds.

  1. Replies
    9
    Views
    1,293

    Re: Help with Java code

    Well, what is the KnopHandler class?

    Also, that syntax is incorrect. What are you trying to do here:

    zwart.addActionListener(kh)(
    new ActionListener(){
    public void...
  2. Replies
    9
    Views
    1,293

    Re: Help with Java code

    See how you save the diameter to a value named d, which you change using a JSlider?

    You can do the same thing with a Color variable:

    Color c = new Color(255, 0, 0); //Color.RED
    g.setColor(c);...
  3. Replies
    9
    Views
    1,293

    Re: Help with Java code

    You're right; there isn't much code required. But we can't just do your homework for you.

    You already use a JSlider to change the diameter of the circles. Changing the colors would be done in a...
  4. Replies
    9
    Views
    1,293

    Re: Help with Java code

    Use the highlight tags by checking out the forum rules you were linked to upon joining, or by quoting another post that uses them to see how they work.

    More recommended reading: A Visual Guide to...
  5. Replies
    9
    Views
    1,293

    Re: Help with Java code

    Please use the highlight tags to preserve formatting. Unformatted code is pretty hard to read.

    Recommended reading: http://docs.oracle.com/javase/tutorial/uiswing/components/button.html
Results 1 to 5 of 5