Re: Application Support directory to classpath

2016-03-12 Thread Hendrik Schreiber
Hey Michael, FWIW, I have been using https://bitbucket.org/infinitekind/appbundler as packager/launcher for a while now. It passes a couple of additional environment variables to the JVM: • LibraryDirectory • DocumentsDirectory • CachesDirectory •

Re: Application Support directory to classpath

2016-03-10 Thread Hendrik Schreiber
Hey Michael, > On Mar 11, 2016, at 02:51, Michael Hall wrote: > > I am trying to add some support for my application updating external files. > Appstore is not necessarily a major concern, but I wouldn’t want to eliminate > it as a possibility for no good reason by doing

Re: java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45

2015-08-18 Thread Hendrik Schreiber
On Aug 18, 2015, at 10:07, Alexander Scherbatiy alexandr.scherba...@oracle.com wrote: On 8/18/2015 10:48 AM, Hendrik Schreiber wrote: [...] The bug has been marked as resolved for 9. It’s unfortunately still present in 8u51. Does anybody know: Will this be fixed in the next 8u

Re: java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45

2015-08-18 Thread Hendrik Schreiber
On Jul 24, 2015, at 16:38, Paul Taylor paul_t...@fastmail.fm wrote: On 23/07/2015 12:46, Alexander Scherbatiy wrote: It looks like known issue JDK-8077016 [macosx] Image transfer through System Clipboard is broken in 1.8.0_40 on Mac OS X

Re: Regression: HiDPI splash screen not supported in 8u51

2015-08-18 Thread Hendrik Schreiber
On Aug 18, 2015, at 19:37, Sergey Bylokhov sergey.bylok...@oracle.com wrote: Hi, Hendrik. It was disabled in 8u40 because of [1], and it should be enabled again in 8u60 in [2]. [1] https://bugs.openjdk.java.net/browse/JDK-8074668 [2] https://bugs.openjdk.java.net/browse/JDK-8075244

Regression: HiDPI splash screen not supported in 8u51

2015-08-18 Thread Hendrik Schreiber
Hey there, I’m under the eerie impression that in 8u51 the HiDPI splash screen (introduced by https://bugs.openjdk.java.net/browse/JDK-8043869) does not work anymore (this is on 10.10.5). As a matter of fact, I can’t even get it to work with 8u45 or 8u40. Can anybody confirm this? Cheers,

Re: Odd behavior on Max OSX 10.10 with retina display and external monitor.

2015-06-27 Thread Hendrik Schreiber
On Jun 27, 2015, at 00:36, AJ Gregory ajgreg...@gmail.com wrote: Using latest Java 1.8.0_25 or Java 1.7.0_80 I'm seeing some odd behavior on Max OSX 10.10 when using a retina laptop and an external monitor. The latest Java 8 is Java 1.8.0_45 not 25. Perhaps you should make sure you see the

Re: codesign crashes since XCode 6.3/OS X 10.10.3

2015-04-16 Thread Hendrik Schreiber
, Apr 12, 2015 at 5:21 PM, Hendrik Schreiber h...@tagtraum.com wrote: The same line worked just fine before the upgrade to XCode 6.3/ OS X 10.10.3. Does anybody else have this problem (and perhaps a solution)? Or asked the other way around: Has anybody succeeded signing an app

Re: codesign crashes since XCode 6.3/OS X 10.10.3

2015-04-12 Thread Hendrik Schreiber
The same line worked just fine before the upgrade to XCode 6.3/ OS X 10.10.3. Does anybody else have this problem (and perhaps a solution)? Or asked the other way around: Has anybody succeeded signing an app with a bundled JDK 1.8.0_40? Just trying to figure out whether it’s me doing

Re: codesign crashes since XCode 6.3/OS X 10.10.3

2015-04-12 Thread Hendrik Schreiber
On Apr 12, 2015, at 21:05, Michael Hall mik3h...@gmail.com wrote: On Apr 12, 2015, at 10:21 AM, Hendrik Schreiber h...@tagtraum.com wrote: The same line worked just fine before the upgrade to XCode 6.3/ OS X 10.10.3. Does anybody else have this problem (and perhaps a solution

codesign crashes since XCode 6.3/OS X 10.10.3

2015-04-11 Thread Hendrik Schreiber
Hey there, since upgrading to XCode 6.3 codesign crashes when signing the bundled JRE (without the JRE, signing works just fine) in my app bundle. This is what happens: codesign --deep -vvv -f --sign Developer ID Application: MyID MyApp.app 2015-04-10 13:48:12.595 codesign[3040:506416]

Re: Is JavaNativeFoundation still supported on OS X 10.10?

2014-11-27 Thread Hendrik Schreiber
On Nov 26, 2014, at 19:08, David DeHaven david.deha...@oracle.com wrote: -F/System/Library/Frameworks/JavaVM.framework/Frameworks I've stopped relying on any headers ever appearing in /System/Library/Frameworks, use ${SDKROOT}/System/Library/Frameworks instead. Good point. Thanks,

Is JavaNativeFoundation still supported on OS X 10.10?

2014-11-26 Thread Hendrik Schreiber
Hey.. I just upgraded to OS X 10.10 and unfortunately my JNI compile steps are now failing, because the headers for JavaNativeFoundation cannot be found anymore. Specifically, given a file Test.m that contains only: #import JavaNativeFoundation/JavaNativeFoundation.h The following gcc call:

Re: java2d performance java7 / java8

2014-10-07 Thread Hendrik Schreiber
On Aug 22, 2014, at 11:59, Hendrik Schreiber h...@tagtraum.com wrote: On Aug 18, 2014, at 16:05, Florian Bruckner (3kraft) florian.bruck...@3kraft.com wrote: [...] Thanks for coming up with some sort of test. Hopefully the folks at Oracle find the time to look into this, perhaps do

Re: Application name in About, Hide, and Quit menu items

2014-09-02 Thread Hendrik Schreiber
On Aug 1, 2014, at 18:29, Sean Reilly srei...@seanreilly.com wrote: In my app bundle ant file I’ve set a few options with the bundleapp tag including these: option value=-Dcom.apple.mrj.application.apple.menu.about.name=${bundle.name}/ option

Crashes in Java_sun_lwawt_macosx_LWCToolkit_stopAWTRunLoop (called with NULL argument)

2014-08-28 Thread Hendrik Schreiber
Hey guys, in the current release, i.e. java version 1.8.0_20 Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) there is a bug that causes crashes, because some code calls Java_sun_lwawt_macosx_LWCToolkit_stopAWTRunLoop with

Re: New button styles in Yosemite

2014-07-21 Thread Hendrik Schreiber
We are looking at this and thinking what can be done here. Hey Petr, glad to hear you're thinking about it :-) -hendrik

Re: java.awt.FileDialog does not work properly bundled but not sandboxed app

2014-05-29 Thread Hendrik Schreiber
On May 29, 2014, at 12:27, Robert Krüger krue...@lesspain.de wrote: I am not really sure I understand your posting correctly. Are you saying that your impression is that java.awt.FileDialog in mode FileDialog.LOAD does not work properly in an app bundle, regardless of sandboxing? If that is

Re: java.awt.FileDialog does not work properly bundled but not sandboxed app

2014-05-28 Thread Hendrik Schreiber
On May 23, 2014, at 19:26, Hendrik Schreiber h...@tagtraum.com wrote: I'm under the impression that the java.awt.FileDialog in mode FileDialog.LOAD does not work properly when invoked from an app bundle. As in: It always assumes a sandbox and does not give me access to all files anymore

Re: HiDPI Scaling - OSX vs Windows

2014-05-28 Thread Hendrik Schreiber
On May 28, 2014, at 18:09, Sergey Bylokhov sergey.bylok...@oracle.com wrote: Hi, Hendrik. The logic of how it should be implemented/updated still under discussion. So if you have some broken use-cases or you have to use some hacks, I suggest to file a new bugs. Thanks, Sergey. I actually

HiDPI Scaling - OSX vs Windows

2014-05-23 Thread Hendrik Schreiber
Hey Guys, about half a year ago I filed https://bugs.openjdk.java.net/browse/JDK-8029087, stating basically that the HiDPI logic on Windows and on OS X is fundamentally different and therefore WORA is violated (don't know what the Linux situation is). I was wondering whether anybody at Oracle

java.awt.FileDialog does not work properly bundled but not sandboxed app

2014-05-23 Thread Hendrik Schreiber
Hey, I'm under the impression that the java.awt.FileDialog in mode FileDialog.LOAD does not work properly when invoked from an app bundle. As in: It always assumes a sandbox and does not give me access to all files anymore. It does not matter, if the bundle was signed or not. The bundle was

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-13 Thread Hendrik Schreiber
On Apr 13, 2014, at 16:55, Eirik Bakke eba...@mit.edu wrote: Huh, in Hendrik's case it seems he gets an even-larger checkmark even in retina mode (judging from the font size in Hendrik's screenshot). In my case I was _not_ running in retina mode. Just to confirm: I was using Retina.

Re: VolatileImages render incorrectly

2014-04-02 Thread Hendrik Schreiber
On Apr 2, 2014, at 9:20, Tobias Bley t...@ultramixer.com wrote: we found this problem too and it’s very very disappointing. A real world desktop application on JDK 7 or 8 on a Mac doesn’t perform well - it’s tooo slow and we can’t ship our software with JDK 7 or 8 using BufferedImages. In

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-03-21 Thread Hendrik Schreiber
On Jan 17, 2014, at 13:07, Hendrik Schreiber h...@tagtraum.com wrote: On Jan 13, 2014, at 12:54, Hendrik Schreiber h...@tagtraum.com wrote: Hey Sergey, bug is filed under (Bug ID: 9009584 ) - Checkmarks of JCheckBoxMenuItems aren't rendered in high res on Retina While at it, you might

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-03-21 Thread Hendrik Schreiber
On Mar 21, 2014, at 15:40, Alexander Scherbatiy alexandr.scherba...@oracle.com wrote: Thank you for the report. I have created an issue on it: 8038113 [macosx] JTree icon is not rendered in high resolution on Retina https://bugs.openjdk.java.net/browse/JDK-8038113 Thanks,

RFE: SecretKeyEntry support for Apple KeychainStore

2014-03-12 Thread Hendrik Schreiber
Hey... I was pleasantly surprised to learn that Apple and subsequently OpenJDK provides support for using the Apple KeyChain as a keystore. As I common use case, I tried to use it to store passwords for third party services (Twitter, git, whatever), but couldn't get it to work. Apparently the

Space character as accelerator in JMenuItem not rendered (correctly)

2014-03-06 Thread Hendrik Schreiber
Hi, when using the space character as accelerator for a JMenuItem, it is not rendered correctly (I guess a ' ' is rendered, but that's kind of hard to see ;-). OS X applications like iTunes (in the controls menu) do render the word Space, localized to the current locale. This is how it fails:

FileAttributeView for tags and colors?

2014-02-27 Thread Hendrik Schreiber
Hey there, I was wondering, wouldn't the tags/colors API in OS X 10.9 be a really nice candidate for a java.nio.file.attribute.FileAttributeView? Is an appropriate implementation planned? I wasn't able to find an RFE on https://bugs.openjdk.java.net Cheers, -hendrik

Re: FileAttributeView for tags and colors?

2014-02-27 Thread Hendrik Schreiber
On Feb 27, 2014, at 23:35, Michael Hall mik3h...@gmail.com wrote: On Feb 27, 2014, at 3:51 PM, Hendrik Schreiber h...@tagtraum.com wrote: Again fwiw, my trz package has support for a lot of different OS X file attributes, including old 'classic', file colors. I sort of liked the idea

Re: Properly code-signing an app with bundled JRE

2014-01-28 Thread Hendrik Schreiber
On Jan 28, 2014, at 19:28, Paul Taylor paul_t...@fastmail.fm wrote: This email sent to paul_t...@fastmail.fm I can confirm I had to change it to use --deep option a while ago for it to work, I do bundle it with a jre and it still works, but maybe not as a plugin not sure what you mean here.

Re: Drawing HiDPI component to BufferedImage

2014-01-24 Thread Hendrik Schreiber
in HiDPI. But other than rendering to the screen, there doesn't seem to be a way to convince the button that it should now render its HiDPI version. Thanks. -hendrik On 1/24/2014 12:05 PM, Hendrik Schreiber wrote: Hey, to animate a component, I usually draw it to a BufferedImage and then draw

Re: Drawing HiDPI component to BufferedImage

2014-01-24 Thread Hendrik Schreiber
On Jan 24, 2014, at 15:35, Sergey Bylokhov sergey.bylok...@oracle.com wrote: On 24.01.2014 18:20, Hendrik Schreiber wrote: However, your other suggestion (double size bufferedimage), does not work. Is this intended or a bug? What happen if you change lf to the Nimbus? I suggest to file

Re: Dragging an image from Webpage within Firefox no longer provides it as DataFlavour java.net.URL/java.util.List on OSX with Java 7

2014-01-15 Thread Hendrik Schreiber
On Jan 13, 2014, at 18:36, Petr Pchelko petr.pche...@oracle.com wrote: Hey Petr! Thank! Please find the requested info below. We’ve had numerous regression in datatransfer area in JDK-8 but wight now they should all be fixed. However the URI transfer on Mac OS X still does not work in

Re: Dragging an image from Webpage within Firefox no longer provides it as DataFlavour java.net.URL/java.util.List on OSX with Java 7

2014-01-15 Thread Hendrik Schreiber
On Jan 15, 2014, at 14:31, Hendrik Schreiber h...@tagtraum.com wrote: On Jan 13, 2014, at 18:36, Petr Pchelko petr.pche...@oracle.com wrote: Additionally, I'm under the impression that when dragging a file from Finder, I do get a DataFlavor.javaFileListFlavor as flavor, but when I request

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-01-13 Thread Hendrik Schreiber
Hey Sergey, bug is filed under (Bug ID: 9009584 ) - Checkmarks of JCheckBoxMenuItems aren't rendered in high res on Retina While at it, you might also want to take a look at (Bug ID: 9009344 ) - JPopupMenus in Swing don't have rounded corners on OS X. Thanks, -hendrik

Re: Aqua Icons support on HiDPI displays.

2013-10-23 Thread Hendrik Schreiber
On Oct 23, 2013, at 5:38 PM, Alexander Scherbatiy wrote: may I ask through which API you intend to make the icons available? There is a way to load system images and icons on MacOS X in Java by using: Toolkit.getDefaultToolkit().getImage(NSImage://NSImageName) method: