Solved

Force Window to minimize ?

Posted on 1997-11-25
1
1,734 Views
Last Modified: 2012-06-21
Hi !

I'm trying to minimize(iconified) window from a button, is it possible ?
I create a frame add button to the frame
I add actionListener to the button
On the actionPerformed I wrote the following:
      processWindowEvent(new WindowEvent(this,WindowEvent.WINDOW_ICONIFIED));
Nothing happened
I try to write despatchEvent(new
WindowEvent(this,WindowEvent.WINDOW_ICONIFIED));
)

in spite of nothing happened .

I tried this without add the WindowListener to the frame , hopping the
event will catch by the system.

When I add  the WindowListener with my WindowAdapter that implement the
following:
public void windowIconified(WindowEvent evt)
{
      Window window = (Window)evt.getSource();
      window.setVisible(false);
}

the window hide itself.

At the end my  question is :

Can I force "windowIconified " event from other component rather then the
user InputEvent , that will minimize my window ??
   
I'm using Jdk1.1.4 on Win NT4.0.

Thanks
0
Comment
Question by:ezra
1 Comment
 
LVL 4

Accepted Solution

by:
russgold earned 50 total points
ID: 1231176
This is a known bug.  See:
http://developer.javasoft.com/developer/bugParade/bugs/4037811.html

To get this fixed, be sure to register for the Java Developer Connection and vote that it is important to be fixed!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

758 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

19 Experts available now in Live!

Get 1:1 Help Now