How can I make frame closing by clicking with mouse on button 'x' in upper right corner of window?
Just add the following line of code to your Frame's constructor:
setDefaultCloseOperation( EXIT_ON_CLOSE );
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center