United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6449451 Empty grey dialog which cannot be closed
6449451 : Empty grey dialog which cannot be closed

Details
Type:
Bug
Submit Date:
2006-07-17
Status:
Open
Updated Date:
2011-04-29
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
linux
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Unresolved
Affected Versions:
5.0
Targeted Versions:

Related Reports

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode)
JDK 1.5.0_07

ADDITIONAL OS VERSION INFORMATION :
Linux xml 2.6.16.13-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006 i686 i686 i386 GNU/Linux
window manager is KDE 3.5.

A DESCRIPTION OF THE PROBLEM :
Start the sample Java application provided in "Steps to Reproduce", press the button, a dialog is displayed, press the Shade button on the dialog title bar (the Shade button exists on the title bar of KDE windows), press the Close button on the same title bar. The dialog should be closed but it remains on screen. Now press the Unshade button. The dialog is a grey rectangle. If I repeat the previous actions I get another grey rectangle, etc. All the rectangles are removed from screen only when I shut down the application.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start the sample Java application provided in "Steps to Reproduce", press the button, a dialog is displayed, press the Shade button on the dialog title bar (the Shade button exists on the title bar of KDE windows), press the Close button on the same title bar. The dialog should be closed but it remains on screen. Now press the Unshade button. The dialog is a grey rectangle. If I repeat the previous actions I get another grey rectangle, etc. All the rectangles are removed from screen only when I shut down the application.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The dialog should be closed when I press the Close button of the dialog.
ACTUAL -
The dialog is not closed when I press the Close button. If I repeat the steps I get another dialog which is not closed.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;

public class TestDialogProblemOnLinuxKDE {

  public static void main(String[] args) {
    final JFrame frame = new JFrame("Sample app for Java bug on Linux with KDE");
    
    JButton button = new JButton("Show dialog");
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JDialog dialog = new JDialog(frame, "Grey rectangle dialog");
        dialog.setSize(200, 200);
        dialog.setVisible(true);
      }
    });
    
    frame.getContentPane().add(button);
    frame.setSize(400, 200);
    frame.setVisible(true);
  }
}

---------- END SOURCE ----------

                                    

Comments
EVALUATION

I am able to reproduce the bug with all the Java releases since 1.5 (so it is XToolkit-specific) only on KDE 3.5.x, no problems with MToolkit are noticed. All the native applications are properly closed in shaded state so the problem is in Java code.
                                     
2006-07-18



Hardware and Software, Engineered to Work Together