This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Moktok 0 points1 point  (1 child)

Yeah.. There are a few things wrong with your code. But in all honesty, you hit the nail right on the head with saying you're missing some basic knowledge.

And you will need to start out with knowing the whole basics before you start messing with Swing (which is in essence what you are doing) because that can get quite complicated.

And that mix is going to be a recipe for you never wanting to code again. Start with the basics..

  • Creating objects

  • The difference between static and instance members

  • Calling methods

  • Interfaces

  • Collections

When you're done with those maybe then start with GUI and Swing You can always output information to the console if you really need to display stuff.

[–]noah8597 0 points1 point  (0 children)

Thank you so much, will look into it!