• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Button in applet

 
thanvi janu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
difference between getActionCommand() and getLabel(), as it both returns Label of the button
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how is this related to scjp?
 
Maneesh Godbole
Saloon Keeper
Posts: 11178
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getLabel is deprecated and it is recommended you use getText instead

You can set up a button with an action command which is different than the display label. This is useful in scenarios where your UI uses resource bundles where the display language/text can change. the action command is internal to the source code and not visible to the user.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic