java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45

2015-07-23 Thread Paul Taylor
This code that was used in some circumstances for dealing with single images dragged and drop from certain webbrowsers (firefox) gave no issues in 1.8.0_25 image = (Image) trans.getTransferData(image/x-java-image;class=java.awt.Image); but now in 1.8.0_45 causing

Re: Swing Look And Feel for Yosemite

2014-11-11 Thread Paul Taylor
On 11/11/2014 02:02, Phil Race wrote: On 11/10/14 9:45 AM, David DeHaven wrote: We still use it for the occasional generic Java 7/8/9 on Mac question that comes up from time to time. It is far preferable that the question be posted to the more specific lists, but sometimes it isn't clear

Re: OSX failing to get a url for image even though it is a supported dataflavour for the transferable

2014-09-23 Thread Paul Taylor
On 22/09/2014 14:03, Scott Palmer wrote: The XML has an array of two strings. Are you sure you aren't getting the error from the second blank string? Scott Ah, good point BUT why would getTransferData() return an empty value, I dont see I have any control over that ? Paul

OSX failing to get a url for image even though it is a supported dataflavour for the transferable

2014-09-22 Thread Paul Taylor
Customer reporting this error when trying to copy and paste an image from amazon, although we check the transferable object support a particular dataflavor, it fails when try and use that data flavour to get a url. Ive not seen this error before and recently moved to Java 1.8.0_20 so I'm

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

2014-09-19 Thread Paul Taylor
On 18/09/2014 20:22, Hendrik Schreiber wrote: On Sep 18, 2014, at 20:49, Paul Taylor paul_t...@fastmail.fm 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

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

2014-09-18 Thread Paul Taylor
Can somebody help me with this please I just updated from OSX 10.9.4 to 10.9.5, and it looks like I have to change how I sign Java application after updating because Im now getting this output after signing with export

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 Paul Taylor
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/MacOS is actually a symlink. I don't know if you copy it if it

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

2014-05-29 Thread Paul Taylor
On 29/05/2014 11:27, Robert Krüger wrote: Hi, 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 confirm

Re: HiDPI/Retina support for -splash option

2014-05-23 Thread Paul Taylor
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 being worked on, or is there a bug report for this (I couldn't find one)? It's a little disappointing when

Unable to get Applescript Engine on some computers

2014-02-27 Thread Paul Taylor
In my code I have: ScriptEngineManager mgr = new ScriptEngineManager(); ScriptEngine engine = mgr.getEngineByName(AppleScript); this works fine for me, but for some customers in returns null for engine. We are using Java 1.8.0 25.0-b69 64bit (build 129) Customer was on Mac OS X 10.9.2 x86_64,

Re: Unable to get Applescript Engine on some computers

2014-02-27 Thread Paul Taylor
On 27/02/2014 11:50, Andrew Thompson wrote: On Feb 27, 2014, at 6:10 AM, Alan Bateman alan.bate...@oracle.com wrote: The JDK does include the AppleScriptEngine but is missing the service configuration file that is needed to locate it. There is a bug open for this but it does raise the

Re: Unable to get Applescript Engine on some computers

2014-02-27 Thread Paul Taylor
On 27/02/2014 12:16, Paul Taylor wrote: On 27/02/2014 11:50, Andrew Thompson wrote: On Feb 27, 2014, at 6:10 AM, Alan Bateman alan.bate...@oracle.com wrote: The JDK does include the AppleScriptEngine but is missing the service configuration file that is needed to locate it. There is a bug

Re: Unable to get Applescript Engine on some computers

2014-02-27 Thread Paul Taylor
On 27/02/2014 13:17, Alan Bateman wrote: On 27/02/2014 13:11, Paul Taylor wrote: : I wanted to replicate the issue before fixing so I renamed /System/Library/Java/Extensions/AppleScriptEngine.jar and libAppleScriptEngine.jniLib but it stills works. I searched the whole hard disk

Re: Unable to get Applescript Engine on some computers

2014-02-27 Thread Paul Taylor
On 27/02/2014 11:07, Michael Hall wrote: On Feb 27, 2014, at 4:52 AM, Paul Taylor paul_t...@fastmail.fm wrote: In my code I have: ScriptEngineManager mgr = new ScriptEngineManager(); ScriptEngine engine = mgr.getEngineByName(AppleScript); this works fine for me, but for some customers

Disabling AppNap from java

2014-02-22 Thread Paul Taylor
I think Im having problems with AppNap with my application, although it is difficult to understand when/if it is kicking in. 'The correct way to disable App Nap is to use the -[NSProcessInfo beginActivityWithOptions:reason:] and -[NSProcessInfo endActivity] APIs within your app via JNI, and

Re: Disabling AppNap from java

2014-02-22 Thread Paul Taylor
On 22/02/2014 20:43, Eirik Bakke wrote: JNA might be a simpler way to call native functions: https://github.com/twall/jna -- Eirik On 2/22/14, 8:51 AM, Paul Taylor paul_t...@fastmail.fm wrote: I think Im having problems with AppNap with my application, although it is difficult to understand

Re: Java 7 application halting OSX when left unatteended

2014-01-31 Thread Paul Taylor
On 31/01/2014 10:58, Hendrik Schreiber wrote: This smells like App Nap. See http://krypted.com/mac-os-x/disable-app-nap-in-mavericks/ -hendrik I'm just testing it with AppNap will report back later, if this doesnt fix it I'll dig out by 10.8 machine and see if the problem occurs there as

Re: Properly code-signing an app with bundled JRE

2014-01-28 Thread Paul Taylor
On 28/01/2014 18:12, Hendrik Schreiber wrote: 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

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 Paul Taylor
On 13/01/2014 16:27, Hendrik Schreiber wrote: On Jan 13, 2014, at 14:14, Paul Taylor paul_t...@fastmail.fm 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

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 Paul Taylor
On 13/01/2014 16:47, Hendrik Schreiber wrote: On Jan 13, 2014, at 17:38, Paul Taylor paul_t...@fastmail.fm 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

Re: Using the Apple menu (Apple.laf.useScreenMenuBar) the menu items are always in English whatever set as Preferred Language

2013-12-25 Thread Paul Taylor
On 25/12/2013 13:26, Petr Pchelko wrote: Hello, Paul. Sorry for the delayed answer. The problem is that we are relying on Cocoa to create these menu items. However, to properly understand the locale Cocoa needs a special key in the Info.plist file (CFBundleAllowMixedLocalizations). However

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

2013-11-25 Thread Paul Taylor
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:

Re: Problem with InetAddress.getLocalHost() on Java 7

2013-11-11 Thread Paul Taylor
On 11/11/2013 15:35, Alan Bateman wrote: On 11/11/2013 09:09, Paul Taylor wrote: Trouble is I cannot replicate the problem myself even if remove entries from /etc/hosts it is only a problem some of my customers are having Paul The reports on this issue (assuming it is the same thing as JDK

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

2013-11-04 Thread Paul Taylor
On 31/10/2013 17:30, Paul Taylor wrote: Things were working okay with Java 6 ( and some custom libs) but now by default a Java 7 application is only movable on Mac if you click near the top of the window (like on Windows), however if I set toolbar.getRootPane().putClientProperty

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

2013-11-04 Thread Paul Taylor
On 04/11/2013 09:37, Hendrik Schreiber wrote: 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

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

2013-10-31 Thread Paul Taylor
(). The only thing I would say is that is if Cntl-Click is meant to work the same as Right-Click on OSX in all situations it does seem there is a minor issue that it breaks my old code but this is no longer a problem for me. On 29.10.2013, at 15:14, Paul Taylor paul_t...@fastmail.fm

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

2013-10-31 Thread Paul Taylor
Things were working okay with Java 6 ( and some custom libs) but now by default a Java 7 application is only movable on Mac if you click near the top of the window (like on Windows), however if I set toolbar.getRootPane().putClientProperty(apple.awt.draggableWindowBackground) I can then

Re: Moving around Jtable with cursor key balnks out values

2013-10-30 Thread Paul Taylor
On 30/10/2013 12:13, Paul Taylor wrote: With Java 7 on OSX I find that as I move around my JTable cells with cursor keys it causes it to blank out every field in goes into. Adding: table.putClientProperty(JTable.autoStartsEdit, Boolean.FALSE) stops that issue happening, but then I have