In the FancyBox BSH UI I have in onload.bsh the statements:
JColorSelector menuBootstrap_backgroundColor = new JColorSelector("menuBootstrap_backgroundColor");
menuBootstrap_backgroundColor.setColor("#ffffff");
If I port this to a compiled GUI, NetBeans reports
illegal start of type for the 2nd statement.
File SkinModel.java contains the statement
public String menuBootstrap_backgroundColor="#ffffff";r
What is the best way to change in the 2nd problem statement?
BTW Is there somewhere a list of differences between BSH and Compiled codes?
I have a simular problem with the last statement in
JComboBox menuAlignment = new JComboBox(new Object[] {
new Item("mr-auto", "Left"),
new Item("mx-auto", "Centered"),
new Item("ml-auto", "Right")
});
menuAlignment.setSelectedIndex(1);
Edit:
I found the solution, I have in Netbeans to move the setColor and SetSelectedIndex to the next section where the controls are added to the panel.
But now I have another problem:
If I move the jar file to the skin lib folder and open an album made with the skin I get the next message:
We're sorry. jAlbum is unable to start. Please pass this error report to support@jalbum.net
Thank you for your patience.
java.lang.UnsupportedClassVersionError: The FancyBox skin requires a more recent Java version)
at se.datadosen.jalbum.AlbumBean.setDataTypes(AlbumBean.java:5292)
The Source / Binary Format field in NetBeans shows JDK 14 and I get trhe same error if I change that into JDK 13 or JDK 8
Edited by: AndreWolff on 08-Oct-2020 18:05
Edited by: AndreWolff on 08-Oct-2020 19:38