Listing 4: DownMenu.fx
package mariahcarey;
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
class DownMenu extends CompositeNode{
attribute textopacity_1: Number;
attribute textopacity_2: Number;
attribute textopacity_3: Number;
attribute textopacity_4: Number;
}
attribute DownMenu.textopacity_1 = 0.5;
attribute DownMenu.textopacity_2 = 0.5;
attribute DownMenu.textopacity_3 = 0.5;
attribute DownMenu.textopacity_4 = 0.5;
function DownMenu.composeNode() =
Group {
transform: []
content: [ImageView {
transform: translate(365,878)
image: Image { url: "{__DOCBASE__}//images//help.bmp" }
opacity: bind textopacity_1
cursor: HAND
onMouseEntered: operation(e:CanvasMouseEvent) {
textopacity_1 = 1.0;
}
onMouseExited: operation(e:CanvasMouseEvent) {
textopacity_1 = 0.5;
}
},
ImageView {
transform: translate(395,878)
image: Image { url: "{__DOCBASE__}//images//newsletter.bmp" }
opacity: bind textopacity_2
cursor: HAND
onMouseEntered: operation(e:CanvasMouseEvent) {
textopacity_2 = 1.0;
}
onMouseExited: operation(e:CanvasMouseEvent) {
textopacity_2= 0.5;
}
},
ImageView {
transform: translate(460,878)
image: Image { url: "{__DOCBASE__}//images//privacypolicy.bmp" }
opacity: bind textopacity_3
cursor: HAND
onMouseEntered: operation(e:CanvasMouseEvent) {
textopacity_3 = 1.0;
}
onMouseExited: operation(e:CanvasMouseEvent) {
textopacity_3= 0.5;
}
},
ImageView {
transform: translate(540,878)
image: Image { url: "{__DOCBASE__}//images//termofuse.bmp" }
opacity: bind textopacity_4
cursor: HAND
onMouseEntered: operation(e:CanvasMouseEvent) {
textopacity_4 = 1.0;
}
onMouseExited: operation(e:CanvasMouseEvent) {
textopacity_4= 0.5;
}
}]
};
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.