JDK-6918688 : JFileChooser lacks icons on top right when running on Windows 2008 R2
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u18
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_2008
  • CPU: x86
  • Submitted: 2010-01-21
  • Updated: 2011-02-16
  • Resolved: 2010-07-28
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_18-ea"
Java(TM) SE Runtime Environment (build 1.6.0_18-ea-b05)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b12, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows 2008 R2 build 7600

"ver" output:
Microsoft Windows [Version 6.1.7600]


A DESCRIPTION OF THE PROBLEM :
The buttons on the top-right of the file chooser ("Up one level", "Create new folder", ...) do not render under Windows 2008 R2.  The buttons can be pressed and function properly.  Their borders will appear if they are selected or if the mouse passes over them.

This is a duplicate of Bug ID 6840086, which was filed against Windows 7.  It is supposedly fixed for Windows 7 in Java 1.6u18 build 3.  However, using the 1.6u18 build 5 JDK on Windows 2008 R2, I'm still seeing the problem.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. On a Windows 2008 R2 system, launch a JFileChooser object.
2. Look for the following 4 buttons in the upper right of the file chooser:
     - Up One Level
     - Create New Folder
     - List
     - Details

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Both the borders and icons for all 4 buttons should be visible.
ACTUAL -
Both the borders and icons for the 4 buttons are not rendered, leaving the buttons invisible.  You can see their borders if the mouse is passed over them or if they are pressed.

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
PUBLIC COMMENTS I used the same OS >ver Microsoft Windows [Version 6.1.7600] and the same java: >java -version java version "1.6.0_18-ea" Java(TM) SE Runtime Environment (build 1.6.0_18-ea-b05) Java HotSpot(TM) Client VM (build 16.0-b12, mixed mode) See an attached screen-shot.
28-07-2010