Thursday, September 13, 2007
Effective java Companion - Obsolete object references
Check out this page for some nice reading on various familiar topics in Java. I landed on this page for reading "Eliminate Obsolete object references".
How to Handle Java Finalization's Memory-Retention Issues
Was reading about "How to Handle Java Finalization's Memory-Retention Issues" this morning. A nice article for understanding Java finalization and its dos and donts.
One could also find the weak reference been discussed for its effective use with Finalization. Check out this topic on finalization right here.
While reading about Finalization, I wandered to some other websites for reading on memory leaks. Some of them calls Memory Leaks as "Unintentional Object Retention". Thats quite expressive for memory leaks.
One could also find the weak reference been discussed for its effective use with Finalization. Check out this topic on finalization right here.
While reading about Finalization, I wandered to some other websites for reading on memory leaks. Some of them calls Memory Leaks as "Unintentional Object Retention". Thats quite expressive for memory leaks.
Tuesday, September 4, 2007
JavaFx Vs Java Swing
What is JavaFX?
JavaFX is a new family of Sun products based on Java technology and targeted at the high impact, rich content market.
JavaFX Script is a highly productive scripting language that enables content developers to create rich media and content for deployment on Java environments. JavaFX Script is a declarative, statically typed programming language. It has first-class functions, declarative syntax, list-comprehensions, and incremental dependency-based evaluation. It can make direct calls to Java APIs that are on the platform. Since JavaFX Script is statically typed, it has the same code structuring, reuse, and encapsulation features (such as packages, classes, inheritance, and separate compilation and deployment units) that make it possible to create and maintain very large programs using Java technology.
Swing has always been great but there have been limitations whoch are as following:
Swing Applications can be complicated to code and test.
A Swing application takes time to load into a browser.
Swing features often depend on server-side support.
A Swing application must be deployed using Java Web Start.
It is not always easy for a Swing application to manage objects created using other web technologies, like Flash.
Enter JavaFX.
JavaFX is a scripting language, but with a difference: JavaFX is included with my browser's JRE. It can call Java core classes also installed in the JRE. This includes javax.swing classes. I only need to download a few configuration values from a server in order to run a Swing program locally.
This changes Swing's runtime model -- JavaFX moves Swing web functionality from the server to the client. Code resides in the client browser; not on a server. I can still update displays with short calls to data residing on the server. Swing becomes much easier to develop and deploy.
To run a Swing program as a user, I simply click on an appropriate URL, button or menu item, and my own JRE runs the program. This is cool.
Here are two impressive demos posted on the openJavaFX website:
This demo shows how to use JavaFX to call every single component in the javax.swing package.
Getting Started With Swing
This demo demonstrates a complete, self-contained Swing application. In this case, the application is an interactive tutorial that shows you how to use JavaFX to write Java2D applications.
Java2D Tutorial
JavaFX is a new family of Sun products based on Java technology and targeted at the high impact, rich content market.
JavaFX Script is a highly productive scripting language that enables content developers to create rich media and content for deployment on Java environments. JavaFX Script is a declarative, statically typed programming language. It has first-class functions, declarative syntax, list-comprehensions, and incremental dependency-based evaluation. It can make direct calls to Java APIs that are on the platform. Since JavaFX Script is statically typed, it has the same code structuring, reuse, and encapsulation features (such as packages, classes, inheritance, and separate compilation and deployment units) that make it possible to create and maintain very large programs using Java technology.
Swing has always been great but there have been limitations whoch are as following:
Swing Applications can be complicated to code and test.
A Swing application takes time to load into a browser.
Swing features often depend on server-side support.
A Swing application must be deployed using Java Web Start.
It is not always easy for a Swing application to manage objects created using other web technologies, like Flash.
Enter JavaFX.
JavaFX is a scripting language, but with a difference: JavaFX is included with my browser's JRE. It can call Java core classes also installed in the JRE. This includes javax.swing classes. I only need to download a few configuration values from a server in order to run a Swing program locally.
This changes Swing's runtime model -- JavaFX moves Swing web functionality from the server to the client. Code resides in the client browser; not on a server. I can still update displays with short calls to data residing on the server. Swing becomes much easier to develop and deploy.
To run a Swing program as a user, I simply click on an appropriate URL, button or menu item, and my own JRE runs the program. This is cool.
Here are two impressive demos posted on the openJavaFX website:
This demo shows how to use JavaFX to call every single component in the javax.swing package.
Getting Started With Swing
This demo demonstrates a complete, self-contained Swing application. In this case, the application is an interactive tutorial that shows you how to use JavaFX to write Java2D applications.
Java2D Tutorial
Subscribe to:
Posts (Atom)