Cynthia Jeness schrieb:
> We have a legacy GUI application which communicates with a Java TCP/IP
> server application running on the same computer. Depending on the type
> of message received, we load a JFrame which contains a JTabbedPane. The
> application is launched correctly. However, at least under NT, it is
> minimized and, thus, you must select it from the Taskbar to actually see
> it. The application is launched correctly under OS/2. In the case of
> NT, we are using the latest JDK 1.3.1 from Sun. I have tried explicitly
> setting the state of the frame to NORMAL. But this has no effect.
I use the following code sequence to open frames and bring them to front
with JDK 1.3.1 Windows NT and 2000:
if(System.getProperty("os.name").startsWith("Windows")) {
Gui.getLog().write(Log.LEVEL_INFO, "Enabled Windows window to front patch");
enableWindowsPatch = true;
}
Then opening does this
// workaround for windows to bring frame to front
if(enableWindowsPatch)
frame.toFront();
frame.setVisible(true);
> Does
> anyone have any suggestions about how to get the application launched in
> a normal size. If I launch it from the command line on NT rather than
> from an already running Java application, then the window is displayed
> correctly on NT.
Please extract your code sequence to show a frame. May that shows up
an error.
--
Christian Pesch - Software Engineer
CoreMedia AG - http://www.coremedia.com - 0700-COREMEDIA
Visit us on the Systems, M�nchen and Orbit, Basel
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing