JButton objects have a utility to make a JButton as Default Button.
Atmost one button can be the Default Button.
Default Button has a emphasized appearance.
You need to set the Default Button by using setDefaultButton(JButton jb) of RootPane class.
Syntax to make Default Button:
• getRootPane().setDefaultButton(JButton jb)
Following syntax will help to understand you more:
Learn more about to make JButton be the default button. For furthermore information update about java and other technology you can get in touch with Softcrayons' Blog. Softcrayons is one of the leading Java training institute in India. To get more updates, news, and experience about java technology; keep update with our blog.
Atmost one button can be the Default Button.
Default Button has a emphasized appearance.
You need to set the Default Button by using setDefaultButton(JButton jb) of RootPane class.
Syntax to make Default Button:
• getRootPane().setDefaultButton(JButton jb)
Following syntax will help to understand you more:
Learn more about to make JButton be the default button. For furthermore information update about java and other technology you can get in touch with Softcrayons' Blog. Softcrayons is one of the leading Java training institute in India. To get more updates, news, and experience about java technology; keep update with our blog.

No comments:
Post a Comment