Minimize icon instead of restore in Windows L&F

Hi. The following code shows a simple JInternalFrame in a JDesktop applet. When minimizing the JInternalFrame notice the icon of the frame still shows MINIMIZE and not RESTORE.

Any fixes/comments?

Thanks.

import javax.swing.*;

public class Tap2 extends javax.swing.JApplet{

public Tap2() {

try

{

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName ());

}

catch (Exception exc)

{

System.err.println("Error loading L&F: " + exc);

}

JDesktopPane dk = new JDesktopPane();

setContentPane(dk);

setBounds(10,10,400,400);

MyInf inf = new MyInf();

dk.add(inf);

inf.setVisible(true);

dk.setVisible(true);

}

public void init(){

}

class MyInf extends JInternalFrame{

public MyInf(){

super("X",false,false,false,

true);//iconifiable

setSize(300,300);

setLocation(20, 20);

}

}

}

[994 byte] By [shayl] at [2007-9-26 2:07:23]
# 1

I don't know why this is the only posting I have seen for this problem. It is a very obvious problem. If you run the SwingSet2.jar from the jdk1.3.1, click on the JInternalFrame examples and select the Windows Look and Feel in the menu, you can see the above described errors when you try to minimize and maximize the internal frames. Anybody has solutions PLEASE?

sovannary at 2007-6-29 8:54:38 > top of Java-index,Desktop,Deploying...
# 2
i submitted a bug about this and got a reply from sun that they are aware of this and it will be fixed in the next p-gin release (i guess that's jdk1.4).cheers.
shayl at 2007-6-29 8:54:38 > top of Java-index,Desktop,Deploying...