Ok well make your methods public so you can access them from another .java file if you need to.
the settext thing: mybutton.setText("your text"); will set it. this works by inheriting the setText method common to a lot of javax.swing components, of which JButton is one.
To help you implement the actionlistener ("listens" to catch a click event on the button, and then executes specified code when it is clicked), i need to see what you have so I know what variables can be used. Probably what you want to do is create your own listener class that implements ActionListener (this allows it to inherit it's function) and specify what you want done when it is clicked. If you are going to fully implement the buttons, you might need some help. It might be a little tough to do with 3 weeks of java, as you don't really understand inheritance or encapsulation yet for that matter. Again, happy to assist you bro. 3rd year computer science student here ;p
Email is
godliness10@gmail.com
-----
As a side note, when comparing strings use .equals
sometimes the boolean comparison can cause problems, by referring to the exact object ( in memory) rather than the string's value
mystring.equals("y"); #returns a boolean
for various reasons, though, i would suggest using a boolean if you are going to have it driven by buttons as opposed to text. it's silly to have it create a string when the input is just click or no click

boolean makes more sense...and takes up a ridiculously small amount of memory.
Last edited by rcarey; Sep 28, 2012 at 07:55 AM.
Reason: <24 hour edit/bump