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.

Comments

Popular posts from this blog

Git reset to HEAD from cherry-pick

How to rebase chain of git changes on master ?