JDK-4373692 : JDesktopPane paint slow in Solaris than WIndows platform
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2000-09-25
  • Updated: 2000-11-30
  • Resolved: 2000-11-30
Related Reports
Duplicate :  
Description

Name: yyT116575			Date: 09/25/2000


java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-RC)
Java HotSpot(TM) Client VM (build 1.3.0-RC, interpreted mode)


We have a simple class whose code is attached below. The class creates a
JdesktopPane and adds it to a frame & displays it. The GUI get painted very
slowly and you can even see every inch strip getting painted. The same class
when run on Windows with equivalent jre does not have this problem. Is any OS
patch required on Solaris. (I could not apply 106409-01 patch, as the patch
does mention any required patches, but when I tried to apply it, the process is
teminated saying that one of the requried patch package is not applied.)
The test source code (test1.java) is as follows

import javax.swing.*;
import java.awt.*;

public class test1 extends JFrame
{
    public test1 ()
    {
        JDesktopPane desktop = new JDesktopPane();
        desktop.setPreferredSize( new Dimension(800,600) );
        getContentPane().add( desktop );
        setSize ( 800, 600 ) ;
        setBackground ( Color.black ) ;
        setVisible ( true ) ;
    }

    public static void main ( String [] args )
    {
        test1 t = new test1 () ;
    }
}

This program runs just fine with jdk 1.1.8 / swing 1.0.3. The program also
works just fine on Windows jdk 1.3. When I run the program on Solaris 2.6 with
jdk 1.3, It takes a lot of time to show up the screen. I used a profiler and
finally figured out that almost all of this extra time was spent in the call
GraphicsEnvironment.getLocalEnvironemnt in java.awt.Window constructor.
Incidentally, jdk 1.1.8 java.awt.Window does not have this function call. I
also get lot of font not found warnings as attached below. Please tell me what
to do so that the performance of this program improves.

Regards,

Mandr

Attached is warning message:
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-norm
al--*-%d-*-*-p-*-sun-fontspecific]
(Review ID: 109850) 
======================================================================

Comments
WORK AROUND Name: yyT116575 Date: 09/25/2000 none ======================================================================
11-06-2004

EVALUATION As the submitter mentions the same code runs faster on Windows, and Swing doesn't have any platform specific code, this seems like more of a 2D issue. I am reassigning. scott.violet@eng 2000-11-29 This is a duplicate of 4369234: GraphicsDevice.getConfigurations is very slow which has been fixed in Merlin and Ladybird. dmitri.trembovetski@eng 2000-11-30
29-11-2000