Re: Again about default button



ffellico@xxxxxxxxx wrote:

You solved me also this problem ( before you suggest me the solution for the statusbar at the bottom of a frame).

This is a new step for me in learning and using Java.  Thank you.
Franco from Italy.


A more generic solution for this is to use the "defaultButton" property of the rootPane on the Window/Frame/Dialog. See the API docs for the setDefaultButton method in the class javax.swing.JRootPane.


BK
.