I have few problems regarding my code.First,after I've implemented ActionListener all my panel layout gone missing.Second,the buttons will only appear after mouse points on it.Can anyone points out my error whether it's layout or ActionListener problem and how to solve it?Thanks.
It's hard to tell, because your code is unreadable for several reasons, including
- It isn't indented
- There are comments which look like code
So my guess is that when you inserted the code for your ActionListener, you inserted it in the wrong place. I would suggest starting again, and this time write your code so you can read it. Your future self will thank you.
Danger, 10,000 volts, very electic .... tiny ad:
professionally read, modify and write PDF files from Java