Search:

Type: Posts; User: MartijnSpurs

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    1,293

    Re: Help with Java code

    Okay thank you, I'm further now and I managed to make a button.
    My code:



    JButton zwart = new JButton("Zwart");
    add(zwart, BorderLayout.PAGE_START);
    KnopHandler kh = new KnopHandler();...
  2. Replies
    9
    Views
    1,293

    Re: Help with Java code

    Programming is frustrating haha, I worked for 5 hours on this piece of code.



    g.setColor(Color.RED);


    This will set the ovals to another color, but the problem is that I can't add a JButton...
  3. Replies
    9
    Views
    1,293

    Re: Help with Java code

    Thank you for the guides, I'm really a beginner in Java and I find it also hard to read English articles but I read them and I understand what they mean but like when I try to fix my code it won't...
  4. Replies
    9
    Views
    1,293

    Re: Help with Java code

    Sorry but how can I use the highlight tags?
    And I know the general rules for adding a JButton but I can show with a picture what happens.

    Before adding a simple JButton:
    2143

    After adding...
  5. Replies
    9
    Views
    1,293

    Help with Java code

    Hello, I'm making a Java code for school but unfortunately I have some issues.

    This is my script til now on:



    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
Results 1 to 5 of 5