Originally Posted by
KevinWorkman
That's not really a great way to program. You should test each small step before moving on to the next one. Waiting until you have a bunch of different pieces added will only cause you to deal with multiple errors at once, which is what you're doing.
Honestly, what you're doing is overkill. I'd recommend you first go back through the basic tutorials, as you're making syntax errors that don't make any sense. For example, what method takes an assignment statement as an argument? What constructor of JButton takes a Color argument? Why are you using JButtons for this anyway? Read through this:
Trail: Learning the Java Language (The Java™ Tutorials)
When you have a handle on the basic syntax, write some simple test programs to practice. You can probably even start on the logic of whatever you're trying to do, without worrying about the GUI part of it.
Only after you have a firm grasp on that, then you should worry about the GUI. Read through the Swing tutorials:
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
And for what you're doing, I'd recommend the painting tutorials:
Painting in AWT and Swing
Programming is hard. You can't just expect to dive into GUI programming without a firm grasp of the basics first. You probably don't like that answer, but it's the correct one.
impressively enough, i have some grasp of the basics, at least in C++, and i have been told that java isn't all that different (if/then, for/do, do/while are the same)
but thanks for the links, i will read up on them!... I tried searching for "JAVA tutorials", and got nowhere real fast...
and thank you for pointing out my exact errors.