Solved

Trapping window maximize minimize events.

Posted on 1998-09-25
1
676 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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

744 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

15 Experts available now in Live!

Get 1:1 Help Now