[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Deiconify a JInternalFrame from program

Posted on 1999-12-27
1
Medium Priority
?
532 Views
Last Modified: 2010-08-05
Hi,
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);
                myInternalFrame.show();
                myInternalFrame.moveToFront();
but nothing worked
0
Comment
Question by:wbk
1 Comment
 
LVL 3

Accepted Solution

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

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