Solved

Force Window to minimize ?

Posted on 1997-11-25
1
1,735 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

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

Title # Comments Views Activity
groupSum5 challenge 5 67
word0 challenge 3 76
VB Script to add site to Java Exception List 4 47
servlet example issue 6 27
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…
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…
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 the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

948 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