New JavaFX Script Build Posted To OpenJFX
We just posted a new build of JFX which contains the following fixes
and features:
UI -
1) Shape Morphing
- Added class javafx.ui.canvas.Morph
This provides binary shape morphing. To use it assign an initial and
terminal Shape to its start and end attributes respectively. Then
animate its morph attribute between 0 and 1.
Morph is a Shape and can be used like any other Shape.
Here's a simple JFXPad example:
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
Morph {
morph: bind [0,.01..1] dur 2000
fill: blue
start: Rect {
x: 10
y: 10
width: 460
height: 140
}
end: Circle {cx: 200, cy: 200, radius: 100}
}
2) JavaFXPad
- Added a dialog to add additional directories or jar files to the
source path for JavaFXPad to search for dependent classes
- Added rudimentary support for searching in the source editor
3) Mouse Wheel support in Canvas
Swing components (Widgets) embedded in a Canvas now receive mouse
wheel events.
4) Baseline alignment of Text
It's now possible to align Text at its baseline, by means of its
verticalAlignment attribute, e.g
Text {
content: "Blah"
verticalAlignment: BASELINE
}
Interpreter -
1) bind is now only allowed in initialization contexts
2) Fixed array assignment problem reported on openjfx forum
3) Fixed bug with while condition of dur expression reported on
openjfx user list
JSR 223 -
1) Fixed problems reported on openjfx user list
Re: New JavaFX Script Build Posted To OpenJFX
Hi. I came across this blog entry in relation to "JavaFXPad... added a dialog to add... jar files to the
source path".
I'm very much a noob here, but when using the current version of JavaFXPad (as of Feb 2008) JARs added using the 'source path' dialog aren't recognized?
They don't show up in autocomplete when I type 'import org.' and the classes themselves aren't recognized when I try and use them? All I ever see are the regular java. javax. and org.desktop?
Could you please elaborate on how I can import Java classes from JARs for use within JavaFXPad? I'm really keen to try Metawidget within JavaFX
Thanks in advance,
Richard.