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.
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: