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 • ApplicationSupp

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 something unnecessaril

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

2015-08-18 Thread Hendrik Schreiber
> On Aug 18, 2015, at 19:37, Sergey Bylokhov 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 Alright, so it’s at l

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, -h

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 > 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 th

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 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 >>https://bugs.openjdk.java.net/browse/JDK-8077016 >> > a

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

2015-06-26 Thread Hendrik Schreiber
> On Jun 27, 2015, at 00:36, AJ Gregory 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 same behavior w

Re: codesign crashes since XCode 6.3/OS X 10.10.3

2015-04-16 Thread Hendrik Schreiber
gt; On Sun, Apr 12, 2015 at 5:21 PM, Hendrik Schreiber 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: > > H

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 wrote: > > On Apr 12, 2015, at 10:21 AM, Hendrik Schreiber 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 (an

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 somet

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] In

Re: Question about JDK-8024281 Mac OS X: stop relying on Apple's JavaVM Frameworks

2015-02-21 Thread Hendrik Schreiber
> On Feb 20, 2015, at 19:34, David DeHaven wrote: >> >> Please excuse my ignorance, but >> >> Why? >> And what's the difference? > > .dylib is the standard extension used by the dynamic loader on OSX, .jnilib > was originally used by Apples JRE specifically for JNI libraries and (I > believe

Re: Question about JDK-8024281 Mac OS X: stop relying on Apple's JavaVM Frameworks

2015-02-20 Thread Hendrik Schreiber
>> >> Follow-up question here: I'm trying to use autoconf to identify the >> location of the proper include directories and libraries for subsequent >> use of libtool to create a .libjni JNI dynamic library. > > You should be using .dylib for JNI libs these days. Please excuse my ignorance, but

Re: java2d performance java7 / java8

2015-02-17 Thread Hendrik Schreiber
> On Feb 17, 2015, at 15:01, Sergey Bylokhov wrote: > > Hello, > Thanks for the provided info! I am able to reproduce this bug even on > windows: gdi vs ogl. I will take a look at it. This is good news. Thanks, both of you! I'm always appreciating a faster 2d pipeline! -hendrik

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 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, David! -hendrik

Re: Is JavaNativeFoundation still supported on OS X 10.10?

2014-11-26 Thread Hendrik Schreiber
On Nov 26, 2014, at 13:20, Hendrik Schreiber wrote: > > The very same gcc call used to work on OS X 10.9. > I checked, and indeed the header files are missing in the JNF Framework. OK - not sure why, but the headers have appeared. Perhaps because I installed the XCode command line to

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 The following gcc call: gcc -DTARGET_OS_MAC -Wall -arch x86_64 -isys

Re: Swing Look And Feel for Yosemite

2014-11-10 Thread Hendrik Schreiber
> I dont see why as the issue is very much specific to OSX Agreed, but I guess the Swing people unfortunately don't necessarily read this list.. -hendrik

Re: java2d performance java7 / java8

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

Re: What do we need to change to sign java appbundle since updating from 10.9.4 to 10.9.5

2014-09-18 Thread Hendrik Schreiber
On Sep 18, 2014, at 20:49, Paul Taylor wrote: > On 18/09/2014 18:16, Danno Ferrin wrote: >> On the javapacakger (javafxpackager) side of the house we dodge this by not >> using the symlinked JLI. >> >> The JDK as it is installed installs a symlink to the libjli.dylib in >> ...app/Contents/MacO

Re: Crash in Java2D Queue Flusher, OGLSD_SetScratchSurface

2014-09-08 Thread Hendrik Schreiber
On Sep 8, 2014, at 20:08, Sergey Bylokhov wrote: > The request was reopened and additional information was added. Found the ticket: https://bugs.openjdk.java.net/browse/JDK-8057830 > Thanks for your report! Thank you, Sergey. Very much appreciated. This bug and the one mentioned in http://ma

Re: Crash in Java2D Queue Flusher, OGLSD_SetScratchSurface

2014-09-04 Thread Hendrik Schreiber
On Sep 2, 2014, at 16:56, Hendrik Schreiber wrote: > Hey Anthony, ... or actually anyone else with access to the bug database ... > could you please check whether bug report with review id JI-9014446 was also > closed, because nobody was able to reproduce it? Any chance you can

Crash in Java2D Queue Flusher, OGLSD_SetScratchSurface

2014-09-02 Thread Hendrik Schreiber
Hey Anthony, could you please check whether bug report with review id JI-9014446 was also closed, because nobody was able to reproduce it? If so, the bug also re-appeared in the final Java 8_u20. It seems to be connected to a message in standard error: exception in QueueFlusher: java.lang.Runti

Re: Crashes in Java_sun_lwawt_macosx_LWCToolkit_stopAWTRunLoop (called with NULL argument)

2014-09-02 Thread Hendrik Schreiber
On Sep 2, 2014, at 10:45, Michael Hall wrote: > On Sep 2, 2014, at 3:29 AM, Hendrik Schreiber wrote: > >> Yes, indeed. But logic in other placed would not necessarily work as >> intended. > > I can think of no side effects on that one. All you're doing is avoi

Re: Crashes in Java_sun_lwawt_macosx_LWCToolkit_stopAWTRunLoop (called with NULL argument)

2014-09-02 Thread Hendrik Schreiber
On Sep 2, 2014, at 10:24, Michael Hall wrote: > On Sep 2, 2014, at 2:58 AM, Hendrik Schreiber wrote: > >> That's certainly also possible, but it also does not solve the issue >> completely. > > True. Another work around really. But your crash appeared to be on a

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 wrote: > In my app bundle ant file I’ve set a few options with the tag > including these: > value="-Dcom.apple.mrj.application.apple.menu.about.name=${bundle.name}"/> > > > Maybe they will help in your case? Sorry for the late reply -

Re: Crashes in Java_sun_lwawt_macosx_LWCToolkit_stopAWTRunLoop (called with NULL argument)

2014-09-02 Thread Hendrik Schreiber
On Aug 29, 2014, at 23:39, Michael Hall wrote: > On Aug 29, 2014, at 7:45 AM, Hendrik Schreiber wrote: > >> public void exit() { >> if (!isOwned()) { >> throw new IllegalMonitorStateException(); >> } >> LWCToolk

Re: Crashes in Java_sun_lwawt_macosx_LWCToolkit_stopAWTRunLoop (called with NULL argument)

2014-08-29 Thread Hendrik Schreiber
On Aug 28, 2014, at 20:16, Anthony Petrov wrote: > JI-9014527 was closed as Incomplete "Not enough information.", supposedly > because there's not a reproducible test case and instructions to reproduce > the issue. That is correct. I erroneously assumed that people reviewing bug reports would

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 NU

Re: java2d performance java7 / java8

2014-08-22 Thread Hendrik Schreiber
On Aug 18, 2014, at 16:05, Florian Bruckner (3kraft) wrote: > I have built a minimalistic test case that exposes the problem. It creates a > JFrame with an editor pane in it to show some HTML content (a javadoc page). > The test is to just scroll from the bottom to the top and back to the bott

Re: Crash in Java2D Queue Flusher, OGLSD_SetScratchSurface

2014-08-22 Thread Hendrik Schreiber
On Aug 21, 2014, at 10:10, Hendrik Schreiber wrote: > I was wondering what is the best way to submit crash logs of non-repeatable > VM crashes? Alright - I simply filed a bunch of bugs. But I really think it would be beneficial, if there was a way one could automatically send crashl

Crash in Java2D Queue Flusher, OGLSD_SetScratchSurface

2014-08-21 Thread Hendrik Schreiber
Hey, I was wondering what is the best way to submit crash logs of non-repeatable VM crashes? E.g. I have this crash log containing: OS Version: Mac OS X 10.9.4 (13E28) Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x [...] Thread 24::

Application name in About, Hide, and Quit menu items

2014-08-01 Thread Hendrik Schreiber
Hi, I'm bundling my app using the InfiniteKind AppBundler, which works great. There is just a little discrepancy, I'm wondering about how to get rid off. The application menu (right next to the Apple menu) is named the way I want it - not sure whether this is the app bundle's name or the CFBund

Re: IllegalArgumentException on Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null)

2014-07-24 Thread Hendrik Schreiber
Thanks, guys for looking into this despite the quite weak bug report. -hendrik

IllegalArgumentException on Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null)

2014-07-23 Thread Hendrik Schreiber
Hi, on calling Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null) I get the following exception: java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeHi(TimSort.java:895) at java.util.TimSort.mergeAt(TimSo

Re: New button styles in Yosemite

2014-07-21 Thread Hendrik Schreiber
On Jul 21, 2014, at 9:07, Tobias Bley wrote: > Hi guys,hi @AquaFX, > > what about AquaFX ;) What about it? -hendrik

Re: New button styles in Yosemite

2014-07-20 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

New button styles in Yosemite

2014-07-19 Thread Hendrik Schreiber
Hey Guys, Yosemite seems to offer some new button styles, e.g. in Finder. It would be nice, if those could also be used from Java, in the spirit of https://developer.apple.com/library/mac/technotes/tn2007/tn2196.html Is this on your radar? Cheers, -hendrik

Re: Spawning a process from an app packaged with AppBundler impossible

2014-07-06 Thread Hendrik Schreiber
On Jul 6, 2014, at 11:35, Michael Hall wrote: > On Jul 6, 2014, at 3:13 AM, Hendrik Schreiber wrote: > >> In my case it wasn't, because Ant unfortunately swallows permissions :-( > > I haven't had to worry about it or use it for a while but 'ditto' use

Re: Spawning a process from an app packaged with AppBundler impossible

2014-07-06 Thread Hendrik Schreiber
On Jul 6, 2014, at 2:42, Michael Hall wrote: > On Jul 5, 2014, at 3:22 PM, Hendrik Schreiber wrote: > >> Runtime.getRuntime().exec("/bin/echo"); > > I tried it a little more like you did. I'm not seeing results but I'm not > seeing exceptions eith

Spawning a process from an app packaged with AppBundler impossible

2014-07-05 Thread Hendrik Schreiber
Hi, obviously this is not the AppBundler support list, but I hope you humor me and perhaps are able to help. I'm working on an application using the infinitekind AppBundler port (https://bitbucket.org/infinitekind/appbundler). From within the application I'm trying to spawn another process like

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 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 so, then I can co

Re: HiDPI Scaling - OSX vs Windows

2014-05-28 Thread Hendrik Schreiber
On May 28, 2014, at 18:09, Sergey Bylokhov 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 think the already file

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 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 > anymo

Re: HiDPI Scaling - OSX vs Windows

2014-05-28 Thread Hendrik Schreiber
On May 28, 2014, at 3:48, Richard Moir wrote: > I would also like to hear about the status of this, High DPI PC's are now > hitting the mainstream and our customers are starting to ask why everything > is messed up. For now I guess we have to introduce lots of Windows specific > hacks :-( Tha

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 crea

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

Re: HiDPI/Retina support for -splash option

2014-05-23 Thread Hendrik Schreiber
On May 23, 2014, at 12:32, Paul Taylor wrote: > On 22/05/2014 20:05, Hendrik Schreiber wrote: >> Hi, >> >> I'm under the impression that the VM option -splash does not honor the @2x >> notation for HiDPI images. >> Am I missing something, is that bei

Re: HiDPI/Retina support for -splash option

2014-05-23 Thread Hendrik Schreiber
On May 22, 2014, at 21:16, Sergey Bylokhov wrote: > I think it was overlooked. Please file a new bug at > http://bugreport.sun.com/bugreport , don't forget to add a steps to reproduce > your issue. > Thanks for report! Filed the report. The Oracle review id is: JI-9012489 Cheers, -hendrik

HiDPI/Retina support for -splash option

2014-05-22 Thread Hendrik Schreiber
Hi, I'm under the impression that the VM option -splash does not honor the @2x notation for HiDPI images. Am I missing something, is that being worked on, or is there a bug report for this (I couldn't find one)? It's a little disappointing when you spend so much time on getting Retina right an

ImageIcon returns wrong dimensions

2014-04-15 Thread Hendrik Schreiber
Hi, not sure this is OS X specific, but I encountered a curious little issue with 1.8.0u20. Every now and then, MediaTracking of an ImageIcon does not seem to work all the way. Here's what I expect: A call to: IconImage icon = new ImageIcon(someHttpURL); will load the image via HTTP and only

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-13 Thread Hendrik Schreiber
On Apr 13, 2014, at 16:55, Eirik Bakke 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. -hendrik

Re: VolatileImages render incorrectly

2014-04-02 Thread Hendrik Schreiber
On Apr 2, 2014, at 9:20, Tobias Bley 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 > our opinion JDK7

glasspane performance

2014-03-27 Thread Hendrik Schreiber
Hey.. my application used to use the glasspane for animations, following this simple scheme - draw initial component state to an image - draw final component state to an image - set my own component as glasspane - the draw the different animation stages in the glasspane component, calling repa

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-03-21 Thread Hendrik Schreiber
On Mar 21, 2014, at 15:40, Alexander Scherbatiy 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, > Alexandr. Thanks! -hen

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-03-21 Thread Hendrik Schreiber
On Jan 17, 2014, at 13:07, Hendrik Schreiber wrote: > On Jan 13, 2014, at 12:54, Hendrik Schreiber wrote: > >> Hey Sergey, >> >> bug is filed under "(Bug ID: 9009584 ) - Checkmarks of JCheckBoxMenuItems >> aren't rendered in high res on Retina" &g

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 i

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

Re: FileAttributeView for tags and colors?

2014-02-27 Thread Hendrik Schreiber
On Feb 27, 2014, at 23:35, Michael Hall wrote: > On Feb 27, 2014, at 3:51 PM, Hendrik Schreiber 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 of color bei

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: [9] Review request for 8031573 [macosx] Checkmarks of JCheckBoxMenuItems aren't rendered in high resolution on Retina

2014-02-25 Thread Hendrik Schreiber
On Feb 25, 2014, at 11:53, Alexander Scherbatiy wrote: > On 2/24/2014 5:59 PM, Hendrik Schreiber wrote: >> Hey guys, >> >> will this fix cover JTree folder icons as well? I.e. >> javax.swing.UIManager.getIcon("Tree.closedIcon") returns something that

Re: [9] Review request for 8031573 [macosx] Checkmarks of JCheckBoxMenuItems aren't rendered in high resolution on Retina

2014-02-24 Thread Hendrik Schreiber
Hey guys, will this fix cover JTree folder icons as well? I.e. javax.swing.UIManager.getIcon("Tree.closedIcon") returns something that is rendered in HiDPI on a a HiDPI display? Or would that be a separate issue? Thanks, -hendrik On Feb 24, 2014, at 14:48, Petr Pchelko wrote: > Hello, Ale

Re: [9] Review request for 8031573 [macosx] Checkmarks of JCheckBoxMenuItems aren't rendered in high resolution on Retina

2014-02-13 Thread Hendrik Schreiber
On Feb 13, 2014, at 15:04, Alexander Scherbatiy wrote: > Could you review the fix: > bug: https://bugs.openjdk.java.net/browse/JDK-8031573 > webrev: http://cr.openjdk.java.net/~alexsch/8031573/webrev.00 > > The NSMenu* system icons are templates and do not have image representations. > > T

Re: Java 7 application halting OSX when left unatteended

2014-01-31 Thread Hendrik Schreiber
This smells like App Nap. See http://krypted.com/mac-os-x/disable-app-nap-in-mavericks/ -hendrik On Jan 31, 2014, at 11:54, Petr Pchelko wrote: > Hello, Paul. > > Is this issue specific to Mavericks or it is also reproducible on 10.8? > Could you please provide some test case to reproduce? Or

Re: Properly code-signing an app with bundled JRE

2014-01-28 Thread Hendrik Schreiber
On Jan 28, 2014, at 21:36, Paul Taylor wrote: > Ah right, I package my application up using the BitBucket branch AppBundler > https://bitbucket.org/infinitekind/appbundler whihc just relelized all puts > the jre in the plugin folder > > but I only have to do this > > /usr/bin/codesign --sign

Re: Properly code-signing an app with bundled JRE

2014-01-28 Thread Hendrik Schreiber
On Jan 28, 2014, at 19:56, Hendrik Schreiber wrote: > On Jan 28, 2014, at 19:28, Paul Taylor 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 an

Re: Properly code-signing an app with bundled JRE

2014-01-28 Thread Hendrik Schreiber
On Jan 28, 2014, at 19:28, Paul Taylor 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. I package the J

Properly code-signing an app with bundled JRE

2014-01-28 Thread Hendrik Schreiber
Hey.. it seems that Apple has changed the way codesign works. On Mavericks with current XCode, Unless you use the --deep option, your app isn't signed at all. And when you use --deep, it works fine as long as you don't bundle a JRE as plugin. Is anybody else having this issue... and perhaps a

HiDPI DragImages seem to be impossible

2014-01-24 Thread Hendrik Schreiber
Hey... On OS X it is possible to pass a dragImage to java.awt.dnd.DragSource#startDrag(...), which is then shown during the drag operation. Unfortunately, it is not possible to pass HiDPI images. Even when passing a VolatileImage, which (see other thread) apparently allows to render HiDPI com

Re: Drawing HiDPI component to BufferedImage

2014-01-24 Thread Hendrik Schreiber
On Jan 24, 2014, at 15:35, Sergey Bylokhov 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 l&f to the Nimbus? I suggest

Re: Drawing HiDPI component to BufferedImage

2014-01-24 Thread Hendrik Schreiber
On Jan 24, 2014, at 14:31, Sergey Bylokhov wrote: > You can draw the component to the VolatileImage. or you can create double > size bufferedimage and set scale on its graphics to 2. Drawing to a VolatileImage created via GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice

Re: Drawing HiDPI component to BufferedImage

2014-01-24 Thread Hendrik Schreiber
ufferedImage 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

Drawing HiDPI component to BufferedImage

2014-01-24 Thread Hendrik Schreiber
Hey, to animate a component, I usually draw it to a BufferedImage and then draw that image to the glass pane, where I can easily move it around without having to completely re-render the component all the time. Unfortunately, this technique does not work well on Retina/HiDPI displays, as I can'

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-01-17 Thread Hendrik Schreiber
On Jan 13, 2014, at 12:54, Hendrik Schreiber 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 also want to take a look at "(Bug ID: 900

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 wrote: > On Jan 13, 2014, at 18:36, Petr Pchelko 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 the actua

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 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 some cases, it’s > si

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-13 Thread Hendrik Schreiber
On Jan 13, 2014, at 17:38, Paul Taylor wrote: > I verified it was now working , but in my use case the jpeg is within the > html file so maybe that is the difference I just tried that as well: no difference :-( Which OS X and Java version did you test with? I tried 10.9.1 and java 1.8.0-b121.

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-13 Thread Hendrik Schreiber
On Jan 13, 2014, at 14:14, Paul Taylor wrote: > Hi, yes it is fixed in early access version of Java 8 > > http://download.java.net/jdk8/changes/jdk8-b119.html?q=download/jdk8/changes/jdk8-b119.html Was this fixed by http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8027913 or http://bugs.sun.

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-13 Thread Hendrik Schreiber
On Nov 25, 2013, at 12:07, Paul Taylor wrote: > So on Windows with Java 7 I receive an image dragged frrm a webpage in these > flavours (plus others) but these are two I'm interested in > > 25/11/2013 10.31.07:com.jthink.jaikoz.draganddrop.FileDropTarget:drop:SEVERE: > java.awt.datatransfer.D

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

Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-01-12 Thread Hendrik Schreiber
Hey Guys, just wondered - is it a known bug that the checkmarks of JCheckBoxMenuItems on build 1.8.0-ea-b121 aren't rendered as HiDPI version on Retina displays? Thanks, -hendrik

How to know, whether HiDPI is supported?

2013-11-29 Thread Hendrik Schreiber
Hey.. with some of the Retina work appearing in 1.7.0_60, what is the recommended way for the developer to find out, whether images are/can be scaled, i.e., whether we are dealing with a HiDPI display. In the past, on the Apple JVM, we used: final Float scaleFactor = (Float) Toolkit.g

Re: Swing on Retina displays... ahem... on Windows

2013-11-25 Thread Hendrik Schreiber
On Nov 25, 2013, at 12:54, Sergey Bylokhov wrote: > Hi, Hendrik. > Your issue now in the accepted state: > https://bugs.openjdk.java.net/browse/JDK-8029087 > Thanks! Thanks, Sergey. Also for attaching my comments. What exactly does the tag "8-defer-request" mean? No work on this until when?

Re: Focus border of JButton.buttonType=roundRect is cut off

2013-11-25 Thread Hendrik Schreiber
On Nov 25, 2013, at 12:36, Sergey Bylokhov wrote: > Hi, Hendrik. > Looks like the similar issue was fixed for textured buttons: > https://bugs.openjdk.java.net/browse/JDK-8000435 > It would be good if you create a new issue. Thanks! Thanks, Sergey - I submitted the bug. -hendrik

Focus border of JButton.buttonType=roundRect is cut off

2013-11-25 Thread Hendrik Schreiber
Hi, the focus border of a "roundRect" JButton (as originally defined in https://developer.apple.com/library/mac/technotes/tn2007/tn2196.html — I couldn't find a more recent documentation) is cut off left and right in the current Oracle 1.7.0_45 release. Seems like something with the sizing is o

Re: Swing on Retina displays... ahem... on Windows

2013-11-23 Thread Hendrik Schreiber
On Nov 22, 2013, at 16:07, Hendrik Schreiber wrote: > On Nov 22, 2013, at 14:51, Hendrik Schreiber wrote: > >> [...] > > I should add that this only happens with DPI scaling. > And since the images didn't make it through, here they are: On second thou

Re: Swing on Retina displays... ahem... on Windows

2013-11-22 Thread Hendrik Schreiber
On Nov 22, 2013, at 14:51, Hendrik Schreiber wrote: > [...] I should add that this only happens with DPI scaling. And since the images didn't make it through, here they are: http://www.tagtraum.com/download/default_LaF.png http://www.tagtraum.com/download/windows_LaF.png Cheers, -hendrik

Swing on Retina displays... ahem... on Windows

2013-11-22 Thread Hendrik Schreiber
Hey guys, I know this is off topic for this particular list, but since you all have been working on Retina support so much, I figured I bring it up here as well. I just had a chance to try out 1.7.0_45 on Windows 7 (via Parallels 9). Java nicely takes advantage of the high resolution, however,

Re: 404 Java Bug Database

2013-11-11 Thread Hendrik Schreiber
On Nov 11, 2013, at 6:24 PM, Roger Lewis wrote: > Let me see if I can gent the jaxb redirect issue to the right team to be > resolved. That is great to hear, Roger! Thanks for looking into this. I hope you don't encounter too much bureaucratic red tape... -hendrik

404 Java Bug Database

2013-11-11 Thread Hendrik Schreiber
Hey, so after a bit of searching, I just realized that the Java bug database is now at https://bugs.openjdk.java.net/secure/Dashboard.jspa That means there are a lot of broken links on the Oracle site, e.g. on http://www.oracle.com/technetwork/java/index.html "Java Bug Database" still points to

Re: [OpenJDK 2D-Dev] [8] Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays

2013-11-07 Thread Hendrik Schreiber
On Nov 7, 2013, at 10:05 PM, Jim Graham wrote: > Thanks Hendrik, no apologies necessary. > > I haven't been involved much in the MacOS port so my question was actually a > legitimate call for information and not meant to criticize anyone's input. I > actually searched for a developer page tha

Re: [OpenJDK 2D-Dev] [8] Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays

2013-11-07 Thread Hendrik Schreiber
On Nov 7, 2013, at 9:30 PM, Jim Graham wrote: > How did Apple expose this in their JDK6? > > For the record, I'm saying that getImage("myimage.[fmt]") can load the @2x > image and drawImage() could use that when needed - all of that can happen > without any public API. > > But, for a develope

Re: [OpenJDK 2D-Dev] [8] Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays

2013-11-07 Thread Hendrik Schreiber
On Nov 7, 2013, at 1:03 PM, Clemens Eisserer wrote: >> PLEASE, PLEASE don't make us wait until JDK9 for something that worked >> really well in Apple's JDK6. > > An internal API doesn't mean you can't use it with JDK8, only that it > is not part of the default API (which is more or less the same

Re: [OpenJDK 2D-Dev] [8] Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays

2013-11-07 Thread Hendrik Schreiber
> >> >> The @2x mechanism should be based on different API. I guess it would have >> to be internal-only for 8.0 and could be exposed to allow developers to call >> it and possibly to be a provider for it in JDK9... PLEASE, PLEASE don't make us wait until JDK9 for something that worked reall

Re: How do I make my Java 7 OSX App draggable on toolbar only ?

2013-11-04 Thread Hendrik Schreiber
On Nov 4, 2013, at 10:05 AM, Paul Taylor wrote: > Nevermind I found a solution, I used UnifiedToolbar from > thehttp://code.google.com/p/macwidgets/ project with Java 6. Since moving to > Java 7 and no longer using UnifiedToolbar I couldn't see a solution but > delving into their code simply usi

Re: Possible regressionn, popupmenus not appearing to work correctly with cntl-click

2013-10-27 Thread Hendrik Schreiber
On Oct 26, 2013, at 9:36 PM, Paul Taylor wrote: > Just moved from Java 6 with Quaqua and Feel to Java 7 with Aqua look and feel > so not 100% sure where the problem lies but previously if I have some fields > selected in a table and then invoked popup menu by either > > 1. Right click on two bu

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: > https://d

Re: Aqua Icons support on HiDPI displays.

2013-10-19 Thread Hendrik Schreiber
On Oct 19, 2013, at 12:45 AM, Mike Swingler wrote: > On Oct 18, 2013, at 4:49 AM, Alexander Scherbatiy > wrote: > >> The GetIconRef method is used in the CImage.m now to get the system icons on >> MacOSX. >> >> The NSImage + (id)imageNamed:(NSString *)name method can be used directly >> inst