![]() The other important scriptlet to know is the EVAL function. * This is a block of comments that get ignored by Java until it is closed. You can also comment out bits of code in two ways: these can be handy for later documentation, and also breaking out of loops. You can create a label by placing a colon after the label's name, e.g. This comes in handy for IF statements (See PART 2 for details) because then a single IF can activate several lines of code. It's also possible to place code in "blocks" delimited by curly brackets, e.g. If you DON'T put the semicolon at the end of a the statement, you'll probably get an error message when you try to generate an album - the message will vary depending upon what the next statement is. Basically you put one statement per line, and end it with a " ", like. Within the section between the "", you can place Java statements. in the location on the page that you want it to be evaluated. To write such code, you need to place it like so. Beanshell is just a "shell" under which Java codes can be written and evaluated directly. The first thing to realise is that you can include Beanshell scripts directly on the htt pages. The following has been culled from various books explaining Java, and from other topics in the forums, and repeats information from the help pages as well. ![]() ![]() This is not a full tutorial because I don't know that much, but hopefully it will help you get started. I'm no expert - in fact until I downloaded jAlbum I hadn't even looked at ANY Java coding. I'm writing this for people who, like me, aren't that familiar with Java as a programming language, but would like to use some of it to customise their jAlbum skins. This guide is broken down into four sections as follows: You can run Java code samples interactively in the "jAlbum console window" available from the help menu.
0 Comments
Leave a Reply. |