• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

ActionListener Or Layout Problems?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
caprina cheryl
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 24633
56
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!