Search:

Type: Posts; User: olemagro

Search: Search took 0.49 seconds.

  1. Replies
    5
    Views
    807

    Re: Simple Actionlistener problem

    Couldn't be arsed getting a new eclipse, but I'm fairly confident it's the operating system that prevents the button itself to change its color. I'll just go around it like you did copeg.

    Thanks...
  2. Replies
    5
    Views
    807

    Re: Simple Actionlistener problem

    Cheers, I'll look into it.
  3. Replies
    5
    Views
    807

    Re: Simple Actionlistener problem

    I'm not sure if the fact that I'm using a mac should have anything to say, but all it did was this:

    http://i56.tinypic.com/2cdwgmb.png

    Did as you said and put knapp/test.setOpque(true); above...
  4. Replies
    5
    Views
    807

    Simple Actionlistener problem

    Hi,

    This is probably a stupid problem, but my gui skills have kind of faded in a year.

    In the following test code I'm adding a button to a panel, which is added to a frame. The button works...
  5. Re: MouseMotionListener is not updating my variable

    I forgot to add the listener to the constructor in the JPanel class. Minor but fatal error.
  6. [SOLVED]MouseMotionListener is not updating my variable

    Hi,

    I've been having some trouble finding a way writing the code for a pupil following the mouse cursor and staying inside of the bounds. I've got all the math right, but I don't think my...
  7. Replies
    4
    Views
    1,235

    [SOLVED] Re: how to get each field of a current date

    Have a look at the link under and I'm sure you'll find what you need. 8)

    Date (Java 2 Platform SE v1.4.2)
  8. Replies
    7
    Views
    4,337

    Re: Chessboard filling issue

    Thanks a lot for all the response! I'll give it a shot when I've gotten some rest.

    //Ole Martin
  9. Replies
    6
    Views
    1,060

    [SOLVED] Re: Help regarding GeneralPath

    I didn't know that. I can imagine that being helpful while overriding important method implementations like that.

    Thanks :)
  10. Replies
    7
    Views
    4,337

    Re: Chessboard filling issue

    I definetly got the matrix generated with your double for-loop example and simply adding a border around it all. However, the border doesn't "stick" to the filled squares when you try to adjust the...
  11. Replies
    7
    Views
    4,337

    Re: Chessboard filling issue

    Ah, clever. I'll give it a shot!
  12. Replies
    7
    Views
    4,337

    Chessboard filling issue

    Hi,

    I'm trying to create an 8x8 chessboard using GeneralPath. I've been able to make the outline of the "matrix" itself, but I am having trouble filling it. I've tried filling it with both...
  13. Replies
    4
    Views
    13,795

    Re: cosine in java

    Ah, didn't know that. Noted to self!

    Edit: Come to think of it, I knew it but didn't consider the fact that int doesn't allow decimals which is crucial in most sine/cosine functions.
  14. Replies
    6
    Views
    1,060

    [SOLVED] Re: Help regarding GeneralPath

    Cheers! Grammar is overrated.
  15. Replies
    4
    Views
    13,795

    Re: cosine in java

    Unless you intend to draw the graph using Graphics2D, the math class contains the sine and cosine functions. They do however only work with radians, so you'll need a converted variable if you intend...
  16. Replies
    6
    Views
    1,060

    [SOLVED] Re: Help regarding GeneralPath

    Figured it out. It was caused by a tiny, yet fatal error in the paintComponent method name. It said "paintCompontent".
  17. Replies
    6
    Views
    1,060

    [SOLVED] Help regarding GeneralPath

    Hi,

    I've been having some computer graphics lectures recently where we start off with 2D. I am able to draw certain shapes with the drawLine-method in paint, but I am still unable to have any...
Results 1 to 17 of 18