• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The program is not responding to the click on the button in a JLayeredPane

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither the button appears
I want it to show
System.out.println("I am finding a customer");
As I am getting the topPanel's btnDone







Please help
Thanks
Jack
 
Campbell Ritchie
Sheriff
Pie
Posts: 49361
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post an SSCCE, as you have been told several times.
Please put some debugging print instructions in the code where you are adding the button, to confirm its details at the time of creation.
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Please post an SSCCE, as you have been told several times.
Please put some debugging print instructions in the code where you are adding the button, to confirm its details at the time of creation.


Hi Campbell,
This is a SSCCE, it is compilable.
Could you please shed some lights on this?
Thanks
Jack
 
Campbell Ritchie
Sheriff
Pie
Posts: 49361
62
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it is not an SSCCE. The first S means short, which that example is not. Nobody will help you if you persist in posting so much code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic