Magazine
 
Quick Review:JavaFX
 
Advanced Examples to JavaFX

var _Directoty_= “http://192.168.10.13/images/userimages”;
var pic=”/13785home2.gif”;
var hght=200;
var wdth=300;
SwingFrame {
title: “Picture Show”
width: 300
height:290
closeAction: function() {
System.exit( 0 );
}
visible: true
content: BorderPanel{
center: Label {icon: bind Icon{image: Image {
url:”{_Directoty_}{pic}”
height:hght
width:wdth
}
}
}
bottom: GridPanel{
rows:2
columns:2
content:[ Button {
icon:Icon { image: Image {url:
“{_Directoty_}{pic}”
height:50
width:50}}
action: function() {
pic=”/13785home2.gif”;
}
}, Button {
icon:Icon { image: Image {
url: “{_Directoty_}/2156mediaplayer.gif”
height:50
width:50}}
action: function() {
pic=”/2156mediaplayer.gif”;
}
}, Button {
icon:Icon { image: Image {url:
“{_Directoty_}/1532articleimagesf1.jpg”
height:50
width:50}}
action: function() {
pic=”/1532articleimagesf1.jpg”;
}
}, Button {
icon:Icon { image: Image {url:
“{__DIR__}/../resources/posit_1.gif”
height:50
width:50}}

Aug 2008 | Java Jazz Up | 55
 
previous
index
next
 
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,

30
, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,

58, 59, 60, 61, 62, 63 Download PDF