JDK-8075060 : [macosx] Multiple defects when starting Swing application with splash screen on Mac
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u40
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2015-03-11
  • Updated: 2015-03-24
  • Resolved: 2015-03-24
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 9
9Resolved
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
OS 10.10.1

A DESCRIPTION OF THE PROBLEM :
When starting a swing application with the options -Dapple.laf.useScreenMenuBar="true" and -splash, the following defects occur:
- Application menu is not displayed
- No dock Icon is displayed
- Keyboard shortcuts (e.g. for application shutdown via Cmd-Q) do not work
- Main frame opens in the background

All these do not occur when using JDK 8u25


REGRESSION.  Last worked in version 8u25

ADDITIONAL REGRESSION INFORMATION: 
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start the application below (source code field) with the VM args: 
-Dapple.laf.useScreenMenuBar="true" -splash:/path/to/arbitrary/image




EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
- Application menu is displayed
- Dock Icon is displayed
- Keyboard shortcuts (e.g. for application shutdown via Cmd-Q) work
- Main frame opens in the foreground

ACTUAL -
- Application menu is not displayed
- No dock Icon is displayed
- Keyboard shortcuts (e.g. for application shutdown via Cmd-Q) do not work
- Main frame opens in the background


REPRODUCIBILITY :
This bug can be reproduced always.

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

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;

public class SplashBugMac {
    public static void main(String[] args){
        final JFrame frame = new JFrame(SplashBugMac.class.getSimpleName());
        final JMenuBar menuBar = new JMenuBar();
        menuBar.add(new JMenu("Test Menu"));
        frame.setJMenuBar(menuBar);
        frame.setSize(400, 400);
        frame.setVisible(true);
    }
}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Remove the -splash option and implement a splash screen in the application.


Comments
please verify is it dup of 8074668 and close it
16-03-2015

Check this bug on a build provided in https://bugs.openjdk.java.net/browse/JDK-8074668
12-03-2015

http://mail.openjdk.java.net/pipermail/macosx-port-dev/2015-March/006870.html
12-03-2015

dup of JDK-8074668 ?
12-03-2015

1) Please use the attached test case to recheck. I have checked this on MAC OS X with JDK 7u80, 8u40, 8u60 ea b05,and 9 ea b53. This issue is reproducible across all the above versions. This could be related to JDK-8074668, but not an exact issue. 2) Test Results: 7u80 : FAIL 8u40: Pass 8u60 ea b05: Fail 9 ea b53: Fail Also, attached is a screenshot of the splash screen post execution.
12-03-2015