JDeveloper

Last March 2009 our company purchase an Oracle Java I training in Makati Philippines for me to explore and evaluate the Oracle JDeveloper tools and ADF frameowrk. The training objective is for us to build a Java EE application using the Oracle JDeveloper tools and its standard framework Oracle Application Developement Framework(ADF). Building J2EE application on Jdeveloper is very declarative, wel just have to drag and drop component we need and bind eact other, Jdev will do the coding upon each user event take places. And Yes it is a good thing for us developer, this can boast more our productivity, we only need to focus to the business logic since the IDE will do the code word for us. isn't cool right?

BUT there are many disadvantage that noticed in this kind of approach, When taking the Oracle Java I training, I have a lot of colleuge that never new how does the framework does in the inside, even though the instructor describe and explain the framework such as ADF, JSF and also the structure of the J2ee application. I noticed when using the JDeveloper, the student dont realy need to focus on the back-end code. they focus on dragging and droping component; and this has big problem when someone needs to undo or edit its work, they dont know how and where to locate that code and what to inject or how to call other objects, since they are just taught to make and drag and drop object.

I suggest for a newbie J2ee developer, before adapting the drag and drop IDE, you should/must get your hands dirty first and understand fully how the servlet and the framework does.

Activating Quartz in Struts

This is very simple tricks on how to activate your quarts scheduler on your struts framework.


On Struts-config.xml file, Just add :


<plug-in
className="scheduleplugin.NewsLetter">
</plug-in>

Save time by Enabled Preview(Alt+Shift+P)


As i played the javaFX code on the netbeans editor, when i want to see the result of my code i constanly run the project using the hotkey F6 or just by pressing the green play icon(RUN) on toolbar, and the IDE will then start compiling and run the project. Every time i execute the RUN, I felt like it eat a lot of my time to just see and figure out the result of just little bit change of code.I notice that there is the Enabled Preview icon(eye like icon above the IDE editor), when i try to using it, it display the output of my code abruptly and what makes more interesting which i discover is that, when leaving the preview window open and i change my code on the IDE editor, the preview window will automatically display the effect the changes as i code it. I find very helpful when dealing with coordinates and defining the properties of the object during initial set-up and animation.wow, this is fun, it saves a lot of time.


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.

var candlebody = Rectangle {
x: 50 y: 100
width: 50 height: 150
fill: LinearGradient { startX: 0.0 startY: 0.0
endX: 1.0, endY: 0.0
proportional: true stops: [
Stop { offset: 0.2 color: Color.ALICEBLUE},
Stop { offset: 1.0 color: Color.YELLOWGREEN} ]
}
effect: GaussianBlur { radius: 5 }
}
preview below:
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.
var candlethread = Rectangle {
x: bind candlebody.x + 23 y: bind candlebody.y - 20
width: 3 height: 20
fill: Color.BLACK
effect: Bloom { }
effect: GaussianBlur { radius: 6 }
stroke: Color.GRAY strokeWidth: 2.5
strokeDashArray: [1.0 .. 5.0]
}
preview below:
4. To look our fire more realistic, we going to make it an crescent like shape. we wil cover a part of fire with javafx.scene.shape.Ellipse and we are going to use the javafx.scene.effect.MotionBlur effect to get the blurry edges. Of course we will bind it to the fire centerX and centerY coordinate.
var firereshape = Ellipse{
centerX: bind fire.centerX + 25 centerY: bind fire.centerX - 30
radiusX: 25 radiusY: 60
effect: MotionBlur {
radius: 25 angle: 100 } }
preview below:
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

blendMode: BlendMode.MULTIPLY
cache: true
content:[firewithradiance candlebody]
effect: Reflection {
fraction: 0.9 topOpacity: 0.5 topOffset: 2.5 } }


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!)
.

Im Proud to have a contribution on javapassion site. :0) thanks for the appreciation javapassion.

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'

netbeans 6.5 high remarks from 65 cats


this is great!!!





Happy 10th Birthday Netbeans
















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
- use of generics and varargs even in the core
  • Still be compatible with j2ee 1.4+
- WebSphere 6.1, weblogic 9.2, JBoss 4.2
  • Spring expression language
- Unified EL++
  • New core container feature
- annotated factory methods


Spring 3 and web space
  • Support for updated java web application
-portlet 2.0: resource request, Portlet events
  • Preparation for Servlet 3.0
- specs to go final by the end of the year

Spring 3.0 Summary
  • Spring 3 embraces REST and EL
- full-scale REST support
- broad Unified EL++ support in the core
  • Spring 3 will significantly extends and refine annotated web controllers
- RESTful URI mappings
- 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
- as well as Java 6
  • Closely integrates AspectJ
- explicit support for load-time weaving

  • Embraces configuration annotations
- annotation-driven autowiring and component detection
- annotation-driven MVC controllers
- annotation-driven test context framework

Hibernate 3.2 support on NetBeans 6.5

got frameworks for model? how about hibernate? unlike before we manually plug the framework to the IDE, before we can fully utilized it but, on 6.5 it is fully supported for hibernate 3.2, no need to download or plug-in it in, and of course we can disabled it as we wanted. Its already included under JavaEE distribution standard package. Creating new hibernate artifact is very straight forward. it comes with the folder file selection. we could choose wizzard to create such Hibernate Configuration File, Hibernate Mapping File, Hibernate Mapping Files, POJOs from Database and the HibernateUtil Java and lastly the Hibernate Reverse Engineering File Editor Support. and I guess most of us would prefer to have wizzard to do things for us, so that we will more focus on business logic rather than solving the Object relation mapping thing that will eat our precious time. So this is really a good feature for hibernate users.

IMO Chrome

I was playing chrome 2 weeks now, since it release on first week of september. I have different browser installed on my machine before then, using Firefox 3, Safari,  MS IE7  and Opera. Im switching those IE in my web developement. In Two weeks duration of using chrome I  found out that it has indeed many advatages from the other browser, one thing very noticeble is its speed, this is because chrome was design for multi threaded browser, if you are running on windows platform you can inspect it in your Task Manager (Ctrl+Shift+Esc), each tab has it own thread and of course it process independently. It has also a lot of goodies for development, and it is enabled by default from fresh intallation of chrome, unlike firefox and Safari, we need to download plug-in for it or tweak the configuration to browser setting to enabled such functionaltiy. Chrome has this Javascript Console that works the same as firefox firebug, selecting elements on it will highlight the page view.One very cool about its development tools is the browser has Task Manager(Shift+Esc) itself, pages name, memory usage, cpu and network statistics is there, if we want to look statistics summary it has by clicking the Stats for nerd links at bottom left of the Task Manager. And overall strenght of chrome is its Javascript, Cnet has a benchmark(click this link) for this. I think this time around the XML will then replace by JSon.  I hope soon well have the Netbeans Javascript on chrome, this browser totally rocks.

And if we wanted to have secure browsing chrome has the incognito(Ctrl+Shift+N) browser, I like its incognito logo, im googling half an hour now I cannot find it, I guess google just hide this incognito perhapse it was its name(hehehe), I think i'd better  post it on chromespot.com, Lastly It has  a simple and very nice look and feel, very professional. 

NetBeans recap Aug ' 08

Its the beginning of the month September, I realize I should check all the things I've done on the netbeans, since next month, about mid October we will the release the final 6.5, each day is very exciting new fixes and feature has been integrated in every development build release. Also today when I check the "Move the Needle" program which I was officialy accepted just last week, i was amazed by its result I am doing doing 868 hits (http://www.netbeans.org/community/teams/evangelism/mtn-last.html) wow, its doing good. On Issue Zilla I do have 40 issues (Issue List) as of this moment, 2 P1, 3 P2 and the rest P3 issues, I hope devac now and me could figure out what really the problem of the Netbeans JavaScript Plugin on IE7, its doing pretty good on Mozilla Firefox, just this IE7. heres the link maybe you could help us :0) http://www.netbeans.org/issues/show_bug.cgi?id=144669. I will try this now on glassfish 3, maybe its with the deployment on Save stuff feature, but the IDE is quite stable and fully functional when browser get crash, We cannot also find good trace on dbmon.exe tools. maybe if you have good tools may we borrow it? :0) . anway this is how really fun begin and things get interesting. And lastly im proud of having 289 points in NetCat (http://qa.netbeans.org/processes/cat/65/participants.html)huh! its really hard to earn those points, but its fun a lot of fun and learning to, collorabting each other idea.

news

Loading...