I have some JButtons laid out on a panel. I dont know where the panel will be pasted. Is there a way I can set a button as a default on a panel? getRootPane() returns a null.
posted 12 years ago
I think you can probably create a transversal policy for the buttons.. I've also seen people use listeners to do it.. Mainly because it's been my experience at least, that the requestdefaultfocus type of stuff doesn't seem to work to well :\