Having a (J)Dialog owned by your (Frame/JFrame) frame, will prevent minimization (but that dialog will be always on top and you may not even make it of "zero" size, peer's menubar, sorry taskbar, with close button will always show up:
<pre>
import java.awt.*;
import javax.swing.*;
public class TestDesactivateMinimize
{
public static void main (
String args[])
{
javax.swing.JFrame frame = new javax.swing.JFrame ("JFrame");
//frame.pack();
JDialog diag = new JDialog (frame, "JDialog", true);
frame.setSize(200, 500);
frame.setLocation(500, 300);
frame.setVisible (true);
frame.show();
diag.show();
}
}
</pre>
[This message has been edited by G Vanin (edited November 23, 2001).]