United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6586752 Window decorations do not appear
JDK-6586752 : Window decorations do not appear

Details
Type:
Bug
Submit Date:
2007-07-30
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
client-libs
OS:
linux
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-fkung_23_jul_2007_16_10-b00)
OpenJDK 64-Bit Server VM (build 1.7.0-internal-fkung_23_jul_2007_16_10-b00, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Linux toycar.toronto.redhat.com 2.6.22.1-27.fc7 #1 SMP Tue Jul 17 17:19:58 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
Graphical applications appear without window decorations.  No title bar, close box, or border.  The window cannot be moved or resized.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start any AWT/Swing application that creates a window.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The window to appear with proper decorations.
ACTUAL -
No decorations appeared.

REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 6
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

                                    

Comments
EVALUATION

Not reproducible with JDK7.0-b16 on linux-amd64 with GNOME 2.8. Need more information about the environment where this bug can be reproduced.

The sample application used to reproduce this issue is as follows:

import java.awt.*;

public class frame {
    public static void main(String[] args) {
        Frame f = new Frame("My Frame");
        f.setBounds(50, 50, 200, 100);
        f.setVisible(true);
    }
}
                                     
2007-07-31
EVALUATION

After a long discussion, it has occured the problem is with some incompatibility between openmotif and lesstif. Their 32bit code is very close to each other, while in 64bits some structures (like PropMwmHints) has different sizes, which causes so strange problems.
                                     
2007-08-03
EVALUATION

It is possible to not include MwmUtils.h header altogether. Motif will be phased out in jdk7 and is not supported in openjdk anyway; XAWT-related code depends on presumed structure fields size  elsewhere. Actually if one does create a native application setting for instance these hints via XChangeProperty, resulting hints will be different for Motif/Openmotif and Lesstif sets of headers.
I propose explicit declaration of the structure in the only place it is used in XAWT.
                                     
2007-08-08



Hardware and Software, Engineered to Work Together