Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change Background color on button Click

 
khushbushah shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want to change Background color of Jpanel and its font on button click.

Can anyone tell me what i am doing wrong?
Here is the code:
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I want to change Background color of Jpanel and its font on button click.

how does the button know you want to do that?
 
khushbushah shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

When user Clicked on button action event will called from test3 class
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> When user Clicked on button action event will called...

how does the button know about the action event?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic