aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Re:Applet buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Re:Applet buttons" Watch "Re:Applet buttons" New topic
Author

Re:Applet buttons

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
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

Joined: Jul 26, 2007
Posts: 10523
    
    9

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?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
I am using awt.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

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

Joined: Oct 04, 2007
Posts: 518
Thank you maneesh.I had converted all my buttons to swing.now its fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Re:Applet buttons