Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JButton help

  Asked By: Alex    Date: Sep 07    Category: Java    Views: 793
  

how can i set Mnemonic as 'ESC' for a button ?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Tomas Thompson     Answered On: Sep 07

Please elaborate a little more................

 
Answer #2    Answered By: Madeeha Malik     Answered On: Sep 07

U can put 'ESC' on button  in 2 ways

JButton jb=new JButton("ESC");

or

JButton jb=new JButton();

jb.setText("ESC");

 
Didn't find what you were looking for? Find more on JButton help Or get search suggestion and latest updates.




Tagged: