Solved

Trapping window maximize minimize events.

Posted on 1998-09-25
1
681 Views
Last Modified: 2012-06-21
Having a WindowListener subclass, it allows the trapping of de/activate Closed/ing de/iconified opend/closed.... but where do I trap/inhibit the maximize/restore/minimize events?
0
Comment
Question by:nigel5
1 Comment
 
LVL 3

Accepted Solution

by:
sailwind earned 50 total points
ID: 1225008
The restore and minimize events are the deInconified and iconified events,
respectively. I went through the docs and I don't believe there is a listener
for the maximizing event since not all platform have them. Another listener
that may be useful is the componentListener, it has:

componentMoved()
componentResized()
componentHidden()
componentShown()

In short, use iconfied events to trap the minimizing event and
deiconified to trap the restoring event.

Hope this helped.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now