JDK-6586752 : Window decorations do not appear
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2007-07-30
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b21Fixed OpenJDK6Fixed
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 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.
08-08-2007

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.
03-08-2007

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); } }
31-07-2007