×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Hani Ibrahim
Added: Jan 3, 2017 8:43 AM
Views: 6
Set button "buttonname" as the default button of the JDialog or JFrame. Put code in appropriate constructor.
  1. this.getRootPane().setDefaultButton(buttonname);