I am having a real problem with setting the focus on a JButton. I have a frame that holds a few panels, and one of them holds a few radio buttons and another has a couple of buttons for the user to click. Currently the focus is on the first radio button, what I want is for my OK button to get the focus. I tried buttonOK.requestFocus() and everything, but that doesn't seem to work. I am hoping someone could help me. Thanks.