Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.73K
~662 People Reached
Favorite Forums
Favorite Tags
java x 1

1 Posted Topic

Member Avatar for bsunkel

Copy and paste the code below to your Main class. So call configureOptionPane() at your main method. Also use UIManager.put("Button.defaultButtonFollowsFocus", Boolean.TRUE) to make enter follows focus. Example: [CODE] public static void main(String[] args) { UIManager.put("Button.defaultButtonFollowsFocus", Boolean.TRUE); configureOptionPane(); } [/CODE] [CODE] private static void configureOptionPane() { if(UIManager.getLookAndFeelDefaults().get("OptionPane.actionMap") == null) { UIManager.put("OptionPane.windowBindings", …

Member Avatar for viniciusmss
0
662

The End.