?
Solved

Force Window to minimize ?

Posted on 1997-11-25
1
Medium Priority
?
1,745 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
russgold earned 200 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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.
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

765 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