[Webinar] Streamline your web hosting managementRegister Today


Deiconify a JInternalFrame from program

Posted on 1999-12-27
Medium Priority
Last Modified: 2010-08-05
My application has a JDesktopPane with several JInternalFrames. The internal frames can be iconified.
I want to be able to deiconify a internal frame from within my program (do the same as the Swing toolkit does, when a user clicks on an iconified internal frame, restore it to its last position and size.
I've tried : myInternalFrame.reshape(x,y,width,height);
but nothing worked
Question by:wbk
1 Comment

Accepted Solution

zhongbing earned 200 total points
ID: 2308803
how abou this
**********from JDK help*********
public void setIcon(boolean b)
             throws PropertyVetoException
Iconizes and deconizes the frame.
b - a boolean, where true means to iconify the frame and false means to deiconify it
PropertyVetoException - when the attempt to set the property is vetoed by the receiver.

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Question has a verified solution.

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

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…
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…
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.
Suggested Courses
Course of the Month10 days, 5 hours left to enroll

591 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