In Java, as opposed to BeanShell, you're not allowed to put ordinary statements straight within a class definition, or outside a class definition. Ordinary statements (i.e. not declarative statements) need to be put within a method. The problematic line in your case is this:
Hover the mouse over the red icons to reveal the cause.
The yellow window says: class, interface or enum expected
Perhaps you just need to make an import.
Ctrl+Shift + I has no effect.
I see, you're not even within the class scope. Just move the "}" ending the class definition down so it encloses those lines of code too. In the topmost scope of Java, only class, interface or enums are allowed.
Think of Java code structured in a hierarchy like this:
A tree of file system folders for each package
Folders containing .java files,
each file containing either the keywords "class", "interface" or "enum", at most one of them public (dictating the file name too)
Each of these classes containing variable- and method declarations
Each method containing either declarations or statements.
BeanShell, in contrast is a scripting language, allowing code statements in any scope.
Not sure what the purpose of your file SlideModel.java is and whether I need it too.
SkinModel.java defines the variables that are on the main skin panels. SlideModel.java defines the variables that are on the custom edit panel. They apply only to individual objects, not to the entire project.
Well, if you don't mind having your album build fail because you're trying to check the value of a variable that hasn't been defined....
If there's no default value declared for localSomething, the album build will blow up. If a variable hasn't been defined, it's not false - it's void.
We don't do things for no reason.
Ok I will try it, but does a SlideModel.java file has an effect if the custom panel code is defined together with the other GUI code in my file FancyBox.java or is it a must that the custom panel code comes in a separate file?