Swing a uvolnovani Window

Robert Novotny Robert.Novotny na upjs.sk
Čtvrtek Leden 28 13:15:28 CET 2010


Je tam extra sekcia Responding to Window Closing Events :-)

By default, when the user closes a frame onscreen, the frame is hidden. 
Although invisible, the frame still exists and the program can make it 
visible again. If you want different behavior, then you need to either 
register a window listener that handles window-closing events, or you 
need to specify default close behavior using the 
|setDefaultCloseOperation| method. You can even do both.

Pod tym traktat ku konstantnam.

A hej, suhlasim, priklady su casto neuplne, napr. JDBC je povestne zlymi 
prikladmi, ktore
malokedy zatvoria vsetky connectiony, resultsety a statementy poriadne. 
Ludia to potom kopiruju
rovno do kodu, a potom to robi podivnosti.


On 27. 1. 2010 16:34, Ondra Medek wrote:
>> Ale chapem, ze casto clovek vpadne do technologie a neexistuje priestor /
>> cas / prilezitost na tutorialove upozornenia.
>>      
> Zadne tutorialove upozornenia nevidim:
>
> http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html
> http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html
>
> I nektere priklady jinde na webu jsou spatne:
>
> http://www.java2s.com/Code/Java/Swing-JFC/Createsimpleaboutdialog.htm
>
> A JInternalFrame ma default close operation jako DISPOSE, aby to
> nebylo tak jednoduche :-)
>
> Nechci zacit flame, ale treba C# to ma vyresene lepe. Jako nektere
> dalsi veci, jak uz zde bylo zmineno.
>
>    

------------- dal?í ?ást ---------------
HTML p?íloha byla odstran?na...
URL: <http://amaio.cz/pipermail/konference/attachments/20100128/71f8e279/attachment.htm>


Další informace o konferenci Konference