Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Re:Applet buttons  RSS feed

 
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
Bartender
Posts: 11445
18
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
Bartender
Posts: 11445
18
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!