On Tue, Jun 02, 1998 at 10:27:35, Andrea Zennaro said:
> I am a student at the Padua University in Italy. I have developed some
> applet and java application using AWT and Swing.
> Usually I wrote and test my code under Linux. Now I have subclassed the
> java.awt.Window Class to create a presentation panel visualized during the
> start up of my applications. Under Linux (JDK 1.1.5 v7) the window simply
> doesn't appear on the screen. I've put some debbuging messages to verify the
> size and other proprieties of the Window object and everything look to be
> right. So, to avoid any possible incompatibily with the window manager, I
> start up X window sever  without any window manager using only an xterm
> client. Again the window doesn't appear.
> Finally I restart my PC and boot Windows NT (with JDK 1.1.3 ). I use the
> same java code, I compiled it again, and the window are displayed in the
> middle of the screen. Why not under Linux ?
> 
> Please, help me.

According to the bug parade on Sun's site, this is a known bug with
the Window class.  Before you do a Window.pack() you need to do a
Window.setSize(1,1) and it will work.  For some reason the size defaults
to 0,0 and the jdk under UNIX actually throws a lower level error.

Keith

-- 
  Keith T. Garner  http://www.uiuc.edu/ph/www/k-garner  [EMAIL PROTECTED]
  STR Consultant           http://www.str.com/             [EMAIL PROTECTED]
 "You can tell a lot about a company from their hostnames." -- Brian Swetland

Reply via email to