Posts

Showing posts from February, 2011

Java - Set Default button

This will focus on setButton when user open the windows. getRootPane().setDefaultButton(setButton); Default focus will be set to setButton in current working frame.