• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Re:Applet buttons

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My applet buttons dont have the effect (look and feel) ,if i move the cursor and even if i click it.but it is working well.how to show the effect in my applet buttons whenever i click those.Is there any need to change applet buttons to swing buttons? or is there any possibilities to show effect in applet itself?pls help me .


Thanks in advance.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by preethi Ayyappan:
Hi,

My applet buttons dont have the effect (look and feel) ,if i move the cursor and even if i click it.but it is working well.how to show the effect in my applet buttons whenever i click those.Is there any need to change applet buttons to swing buttons? or is there any possibilities to show effect in applet itself?pls help me .


Thanks in advance.


Are you using AWT or Swing?
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using awt.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by preethi Ayyappan:
I am using awt.


AWT uses native peers. If you want the effects, you will have to migrate to swing. It is not that difficult as you think. For almost every AWT component you have a corresponding JComponent.

You might want to take a look at this nice article which talks about AWT->Swing migration and its pros and cons.

Best of luck.
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you maneesh.I had converted all my buttons to swing.now its fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic