One thing I overlooked was the skin being used, try another skin from another developer.
It depends indeed on the skin as you can see in the first line of the crash log:
Exception in thread "AWT-EventQueue-0" java.security.PrivilegedActionException:
bsh.EvalError: Command not found: saveUI() : at Line: 66 : in file: inline evaluation of: ``/*
This script produces the user interface for the PhotoSwipe skin. * * . . . '' : saveUI ( )
It can't find function SaveUI used in the Panoramic image custom panel.
My userpanel code was derived from an old thread of RobM
And indeed there is no function SaveUI in my onload.bsh file.
Is or was SaveUI some function of the jAlbum nucleus?
In normal use if I change something in my Panoramic panel I have the same type of silent crash:
Exception in thread "AWT-EventQueue-0" java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy15.focusGained(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.focusGained(Unknown Source)
at java.desktop/java.awt.Component.processFocusEvent(Unknown Source)
I can't remember that I had this crash in previous versions, so I wonder is function SaveUI removed in one of the latest versions?
The user panel code is too complicated for me to understand what happens here, so help is appreciated!
That was the first thing I tried after I got your link, but it does not solve the problem.
Standard I use: codeimport se.datadosen.component.*;
In your Netbeans project select the skin's customUI.java file then run the menu command 'Source/Fix imports'. Though I don't know what you are doing in your code, in that file of my Sprint skin if I remove the line 'import se.datadosen.jalbum.JCustomPanel' I get a warning next to saveUI() and the skin will not compile.
I have managed to make your SS4 skin work without the error, the solution is below.
However, if you used Netbeans you would not have these types of problems.
Thanks for your efforts.
Unfortunately your solution does not work: both panels do have now the same contents, the Panoramic panel gets the same variables as the link panel.
If I remove the code of the link panel completely, I get one panoramic user panel, but the silent crash is still there if I change the Max. image with or apply your tool in a video.
If your version works OK, then please attach your changed files in a message.
When I said it works, what I meant was the error you reported has gone. You need to change the name of one of your
CustomUI customUI = new CustomUI(context);
, you can’t have two different things sharing a single variable name.
You should move from interpreted to compiled UI.
I have neither the knowledge nor the time to do that.
This code was working years without problems in 3 skins, but apparently a change in one of the recent jAlbum versions is giving now problems.
Please confirm the accuracy of that statement; are you saying the problem now occurs in your skins without using my external tool, and that they worked with previous versions of jAlbum when using the gps tool.
Just did a quick experiment. I reinstalled jAlbum 17.1.5, created a project with Slide Show 4, and tried to use the "Panoramic image" custom panel. Got multiple errors when I checked one of the boxes, then clicked in the "Max. image width" field. So these are not new problems.