JDK-5084842 : LookAndFeel of a window changes for the following scenario
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-08-10
  • Updated: 2004-11-10
  • Resolved: 2004-11-10
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 6
6 b12Fixed
Related Reports
Relates :  
Description
Bug Description:
----------------
LookAndFeel of a window changes for the following scenario while running an jnlp application using JavaWebStart.

JDK-Info:
---------
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b62)
Java HotSpot(TM) Client VM (build 1.5.0-beta3-b62, mixed mode)

Steps to reproduce:
-------------------
1. Install jre1.5.0 b62 in windowsXP Testing system.
2. Invoke JavaControlPanel (jre1.5.0/bin/ControlPanel)
3. Click Security tab and click "Certificates.." button.
4. Click import button and import the attached certificate in the bugtraq(client.p12) in client Authentication type,the password is "1234" and enter client authentication keystore password to be "changeit".
5. Click Apply Button and in "Advance" Tab select ShowConsole in "JavaConsole" property Apply and close the console.
6. Open I.E Browser and import the same attached certificate in Personal.
7. Import the following jnlp file from the location
https://client20.india.sun.com:8443/SQA/ShortCut/ShortCut1.jnlp
(javaws -import https://client20.india.sun.com:8443/SQA/ShortCut/ShortCut1.jnlp)
8.  "Warning - Security" will popup click Yes button.
9.  "Password Needed - client authentication KeyStore" window will popup to enter "changeit"
10.  "Client Authentication" dialog will popup, in this window two certificates are listed one is from java keystore and one from Browser keystore.
11. "Warning - HTTPS" dialog will popup for Hostname Mismatch click "Yes" button.

The JNLP Application will be installed in the system.

12. Double Click the ShortCut created in the desktop and follow the steps from 
13. "Warning - Security" will popup click Yes button.
14. "Password Needed - client authentication KeyStore" window will popup to enter "changeit"
15.  "Client Authentication" dialog will popup, in this window two certificates are listed one is from java keystore and one from Browser keystore.

this dialog displayed 2 times select the certificate two times and click ok button
16. "Warning - HTTPS" dialog will popup for Hostname Mismatch click "Yes" button.
This dialog will also appear 2 time click OK button
17. "Warning - Security" will popup click "More Details" button then click "Close" button and click "Yes" button in "Warning -Security" window

small frame with a button will popup,check the console the LookandFeel will be "GTKLookAndFeel" printed as last line,the Console and Frame image are attached as (Console.jpg,Frame.jpg)

Repeat the same steps from 12 to 17 ,but in 17th step don't click more button ,just click "Yes" button
now the Frame will be displayed in MetalLookAndFeel,images are attached as (Console1.jpg,Frame1.jpg).

The problem is the lookandfeel changes due to one action in "Warning - Security" by clicking "More Details" button or without clicking the same button.


###@###.### 2004-08-10

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
11-08-2004

EVALUATION The deployment products set and restore the look and feel all over the place because some of the deployment dialogs (like these https certificate and client-auth dialogs) run on the applications appContext. We need to cleanly seperate the deployment code, and run it all on the deployment app context (as is done in plugin). Then we only need set the look and feel once, for our appContext, and never mess with it for applications app context. ###@###.### 2004-08-10
10-08-2004