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...
Type: Posts; User: olemagro
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...
Cheers, I'll look into it.
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...
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...
I forgot to add the listener to the constructor in the JPanel class. Minor but fatal error.
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...
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)
Thanks a lot for all the response! I'll give it a shot when I've gotten some rest.
//Ole Martin
I didn't know that. I can imagine that being helpful while overriding important method implementations like that.
Thanks :)
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...
Ah, clever. I'll give it a shot!
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...
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.
Cheers! Grammar is overrated.
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...
Figured it out. It was caused by a tiny, yet fatal error in the paintComponent method name. It said "paintCompontent".
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...