[ 
https://issues.apache.org/jira/browse/PDFBOX-3507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15511491#comment-15511491
 ] 

Chris Brown commented on PDFBOX-3507:
-------------------------------------

Hi [~johnhew] thanks for looking into this. I've attached two screenshots. The 
"With-" screen looks exactly the same whether latest Java 1.8 or system Java 
1.6 (using /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java).

The PDFDebugger app is focused, but iTerm2 occupies the taskbar because that's 
where I launched the java process from, and Mac OS X evidently does not give 
any official credence to a java Swing app, which I think is the problem. The 
java process/app doesn't show up in the dock, either; the only way I can focus 
it, if I move to something else, is to spread out my desktop active windows 
(e.g., with the F3 key) and click on the Swing GUI.

> Modern OS X doesn't show JMenuBar in PDFDebugger app
> ----------------------------------------------------
>
>                 Key: PDFBOX-3507
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3507
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.1.0
>         Environment: Mac OS X El Capitan (10.11.6), System-installed Java @ 
> build 1.8.0_101-b13
>            Reporter: Chris Brown
>            Assignee: John Hewson
>            Priority: Minor
>         Attachments: With-useScreenMenuBar.png, Without-useScreenMenuBar.png
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> OS X apparently doesn't support 
> `System.setProperty("apple.laf.useScreenMenuBar", "true");` these days, so 
> that line should be removed from the main method on PDFDebugger. The debugger 
> app is a lot more useful with the menu than without. Forcing it to a single 
> value in main disallows overriding it via 
> `-Dapple.laf.useScreenMenuBar=false`, which means the menubar is invisible 
> and unrecoverable in Mac OS X.
> I built from source at HEAD on trunk, and run with the following command:
>     java -jar ./app/target/pdfbox-app-2.1.0-SNAPSHOT.jar PDFDebugger 
> my-doc.pdf
> After removing the aforementioned line and rebuilding, I have access to the 
> menubar (which is handy!).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to