Yeah, you're welcome! Glad I could help! :)
Type: Posts; User: snowguy13
Yeah, you're welcome! Glad I could help! :)
Yeah. If you define the JButton outside the main method, you can still access it in the main method, and your ActionListener can get to it as well. :D
Oh! I see what you mean. Okay. Well, think about this: if you define a variable or Component in the main method, that is the only place from which it can be accessed. So what's the simplest way to...
What error are you getting (can you paste it/them here)? Also, is this PHP, or Java (the code said PHP above it...)?
Another thing: why is your ActionListener class (me) extending your GUI's class...