Listing 2: Bk_end.fx
package mariahcarey;

import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
import java.lang.System;

class Bk_end extends CompositeNode {
attribute opacityValue_1: Number;
attribute opacityValue_2: Number;
operation changeOpacityValue();
}

attribute Bk_end.opacityValue_1 = 1.0;
attribute Bk_end.opacityValue_2 = 0.0;

operation Bk_end.changeOpacityValue() {
System.out.println("x={opacityValue_1}");
if(opacityValue_1 == 1.0){opacityValue_1 =
[1.00,0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2,0.1,0.0] dur 1500;}
  else if (opacityValue_1 == 0.0){opacityValue_1 =
[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.00] dur 1500;}

if(opacityValue_2 == 1.0){opacityValue_2 =
[1.00,0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2,0.1,0.0] dur 1500;}
  else if (opacityValue_2 == 0.0){opacityValue_2 =
[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.00] dur 1500;}
}

function Bk_end.composeNode() = 
Group {
    transform: translate(0, 0)      
    content: [ImageView {
        transform: []
        image: Image { url: "{__DOCBASE__}//images//background.bmp" }
        onMouseClicked: operation(e:CanvasMouseEvent) {              
                changeOpacityValue();
            }
    },
    ImageView{
        transform: translate(326,106) 
        opacity: bind opacityValue_1
        onMouseClicked: operation(e:CanvasMouseEvent) {              
                changeOpacityValue();
            }
        image: Image { url: "{__DOCBASE__}//images//mariah_1.jpg" } 
    },
    ImageView{
        transform: translate(326,106) 
        opacity: bind opacityValue_2 dur 89
        onMouseClicked: operation(e:CanvasMouseEvent) {
                changeOpacityValue();
            }
        image: Image { url: "{__DOCBASE__}//images//mariah_2.jpg" } 
    }   
    ]};

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.