Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

information from a container  RSS feed

 
Eoin Mac Aoidh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a container with a number of components in it, JPanels and the like.
I would like to take note of a number of things when the user closes the container
(get the time in milisec for instance).
Is it possible to access this information?

eg. something like

Container.onClose(){

getCurrentTimeMilis()

}
???
How does one monitor the container being closed/minimised etc?

Thanks,

E
 
Nick Meverden
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.awt.event.WindowListener
 
Eoin Mac Aoidh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your time.
Exactly what I wanted!

E
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!