JDeveloper
Activating Quartz in Struts
This is very simple tricks on how to activate your quarts scheduler on your struts framework.
<plug-in
className="scheduleplugin.NewsLetter">
</plug-in>
Save time by Enabled Preview(Alt+Shift+P)
JavaFX "Candle"
I was really amaze how easy playing JavaFX using Netbeans 6.5 IDE. I build a simple candle with fire , a fire radiance and the candle reflection. After spending almost 3 hours it was then finnish, as i look at it. I think I should uninstall my Adobe Photoshop CS 3 and doing graphics on JavaFX instead (joke! hehehehek). Yes indeed its really easy and fun scripting on JavaFX, the Netbeans IDE 6.5 also has already a lot HELP for the API and sample of it.
so heres my simple candle.
This is how it is done.
1. Lets create the body of the candle or its trunk. We will going to use the javafx.scene.shape.Rectangle for the trunk and javafx.scene.paint.LinearGradient API to fill color on its trunk. Wel have to use the javafx.scene.effect.GaussianBlur effect to make the trunk more realistic, it also make the edge of the candle more smooth.
2. Lets create the fire and bind it to the trunk so that if we change the X and Y coordinate trunk the fire will follow its position. We'l going to use the shape javafx.scene.shape.Ellipse and we fill it using javafx.scene.paint.RadialGradient to evenly color the fire and then we wel use the javafx.scene.effect.MotionBlur to give a fire effect.var fire = Ellipse {
centerX: bind candlebody.x + 25 centerY: bind candlebody.y - 30
radiusX: 15 radiusY: 30
fill: bind RadialGradient{centerX: 80 centerY: 50
focusX: focusY: 10
radius: 60
proportional: false
stops: [Stop { offset: 0.3 color: Color.ORANGE},
Stop { offset: 0.5 color: Color.YELLOW},
Stop { offset: 1.0 color: Color.BLUE},
] }
effect: MotionBlur { radius: 10 angle: 100 }
}
preview below:
3. Lets create the candle thread on top of the candle trunk and make it look like it burns. wel going to use the javafx.scene.shape.Rectangle for the thread and use the javafx.scene.effect.GaussianBlur effect to look like it is burning.}
effect: MotionBlur {
5. We are going to enhance the flame or the fire. we will make a radiance, in order for us to see the flame radiance we will turn/fill the scene into dark or black color.Stage {
title: "Candle"
width: 300 height: 600
scene: Scene {
fill: Color.BLACK content: [candle]
}
}
preview below:
6. We then make the radiance using the javafx.scene.shape.Ellipse and the javafx.scene.paint.RadialGradient combining 3 colors stop orangedred, orange and white. We then use the javafx.scene.effect.GaussianBlur effect so that the color will spreadout. And then we will make the ellipse slightly transparent so that the flame will still visible using the inherited variable fro the node javafx.scene.Node named opacity and set the value to 0.2.
var fireradiance = Ellipse{
centerX: bind fire.centerX centerY: bind fire.centerX - 25
radiusX: 40 radiusY: 50
fill: bind RadialGradient{
centerX: 80 centerY: 50
focusX: 50 focusY: 10
radius: 60
proportional: false
stops: [Stop {
offset: 0.0 color: Color.ORANGERED},
Stop {offset: 0.5 color: Color.ORANGE},
Stop {offset: 1.0 color: Color.WHITE},] }
effect: GaussianBlur {radius: 60}
opacity: 0.2
}

7. We almost done with our work, lastly we are going goup the candle body variables and have an reflection effect using javafx.scene.effect.Reflection and use javafx.scene.effect.BlendMode set to BlendMode.MULTIPLY.
var candle = Group{
translateX: bind posx translateY: bind posy
and we are Done. please browse the preview output above.
This work of art also is used as reference on the http://www.javapassion.com/ lesson on Java FX Programming (with Passion!)
Netbeans T-Shirt AtLast!!!
wow! its been a months now since i've waited and very excited for the netbeans T-shirt, Finally it arrived yesterday... Yes i like the design, with the big happy b-day netbeans 10 years. I am just wondering why the dots inside the zero is 11, any one has an idea on this? anyway thanks for the netcat 6.5 price i am proud to get 4th rank, the t-shirt and the certificate of netcat 65. thanks.. i am longing for netbeans 7 to get to the 3rd rank.http://qa.netbeans.org/processes/cat/65/participants.html
Happy new year to all
Juz wanted to great a happy and prosperous new year to come 2009'
Spring 3.0: Revisions
I watch the talks from parleys by Juergen Hoeller, the Spring 2.5 highlights and the road map of Spring 3.0 and the its core revision on 3.0
Core Revisions
- Java 5+ with updated Spring core API
- Still be compatible with j2ee 1.4+
- Spring expression language
- New core container feature
Spring 3 and web space
- Support for updated java web application
- Preparation for Servlet 3.0
Spring 3.0 Summary
- Spring 3 embraces REST and EL
- broad Unified EL++ support in the core
- Spring 3 will significantly extends and refine annotated web controllers
- Portlet 2.0 support
- Spring 3.0 will remain backward compatible with Spring 2.5 on Java 5+
Spring 2.5 Summary
Netbeans 6.5 Java EE distribution packages comes with Spring 2.5 support.
- Fully embraces Java 5 & Java EE 5
- Closely integrates AspectJ
- Embraces configuration annotations
- annotation-driven MVC controllers
- annotation-driven test context framework








