Java - Need help

Caporegime
Joined
12 Mar 2004
Posts
29,962
Location
England
Say I have this line of code and I want to use an int value that has been passed to the constructor for x, how can I do it?


When I try that it doesn't work because it tries to pass that value to jPanel, but all I want it to do is set it to a certain colour.
 
Last edited:
Cheers. Btw how do you stop the gui builder creating a space between jPanels? Everytime I try to move them close together they snap apart.
 
Thanks, is there also a way to totally remove all the automatic spacing and resizing crap on everything. It's doing my head in automatically moving things and resizing them all over the place!
 
Last edited:
Back
Top Bottom