New Splash-Screen Functionality in Mustang

Splash screens are a standard part of any modern graphical user interface (GUI) application. Their primary purpose is to let the user know that the application is starting up. An application that displays a polished and professional-looking splash screen can occupy the user’s attention and gain the user’s confidence that the application is starting. In addition, splash screens may provide marketing information. And they are sometimes required for legal reasons: to present copyright information, third-party logos, and so forth.You can use Java Foundation Classes/Swing (JFC/Swing) or AWT to create splash screens in Java technology applications. However, because the main purpose of a splash screen is to provide the user with feedback about the application’s startup, the delay between the application’s startup and the moment when the splash screen pops up should be minimal. Before the splash screen can pop up, the application has to load and initialize the JVM*, AWT, usually Swing, and perhaps some application-dependent libraries. The resulting delay of several seconds has made use of a Java technology-based splash screen less than desirable. Until now.Java Platform, Standard Edition (Java SE, formerly known as J2SE) version 6, code-named Mustang, provides a solution that allows the application to show the splash screen much earlier, even before the virtual machine starts. Now, a Java application launcher is able to decode an image and display it in a simple nondecorated window.

Reference: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/

Advertisements

Spring Season in IT

Introduction

Officially the spring season might be over but spring still seems to be lingering around. If you did not get the smell of the Spring Framework this summer then you might be missing something. You might be having your fingers crossed skeptically about another run of the mill Framework system that we have been seeing for the last couple of years. Hundreds of open source and propriety frameworks have sprung all over the place making it difficult to identify what each framework does, so the skepticism is understandable, but before we write off spring like one of those others it might be worth briefly peeking through it. Spring proposes a new paradigm, a pluggable, non-intrusive and robust framework.

Summary

Unlike other frameworks and APIs, spring does not impose itself wholly on to the design of a project. Spring is modular and has been divided logically into independent packages, which can function independently. The architects of an application have the flexibility to implement just a few spring packages and leave out most of the packages in spring. The “Spring Framework” would not feel bad with this attitude and on the contrary encourages users to introduce Spring into existing applications in a phased manner. So no matter what kind of framework you are using now Spring will co-exist with it without causing you
nightmares and further more Spring will allow you to choose specific packages in Spring.

The “Struts” framework is no doubt a good framework to enhance the ability of the web tier, but the biggest drawback is the fact that it caters only to the web tier and leaves most of the Enterprise tier or middle tier to the fancy of the application architects. The Application architects need to provide an additional framework to deal with the enterprise tier and make sure that the new framework integrates well with the Struts framework. Spring tries to alleviate this problem by providing a comprehensive framework, which includes an MVC framework, an AOP integration framework, a JDBC integration framework, and an EJB integration framework. It also provides integration modules for major O/R mapping tools like Hibernate and JDO. Spring provides all these in a modular fashion without imposing any layer on to the user. Spring is not a take-it-or- leave-it kind of framework. It tries to seamlessly blend into the existing framework users have without hindrances. Spring also provides transaction management support using Java classes,
email support packages using framework classes, web services support through proxies and many more features like the above. As mentioned earlier all these packages are optional and spring does not make any of them mandatory. Spring can seamlessly integrate with existing applications and provide specific functionality that you intend to provide with minimal demands for customization. A user can continue to use Struts for the web tier and toplink O/R for the database and meanwhile hook spring to provide e-mail services and web services support. Spring is based on the Inversion of Control/Dependency Injection pattern that has been making rounds in message boards all over the Internet.
Reference :
http://javaboutique.internet.com/tutorials/spring_frame/article.html

The new attractive features of JDBC 4.0

Java SE 6.0 is expected to be released in October 06. An important part of the new version of Java is the new JDBC 4.0 API. JDBC 4.0 brings several changes to JDBC, but its top priority is making things easier for developers.

Interesting developments in JDBC 4.0 are:

1. No need to explicitly load JDBC drivers using Class.forName() to register a JDBC driver. The DriverManager class takes care of this automatically.
2. Java SE Service Provider mechanism as another means to specify database drivers
3. Specify SQL queries using Annotations
4. Bundled database based on Apache Derby
5. SQL 2003 support, including support for XML as a native database data type
6. Improved exception handling with new exception classes
7. A new DataSet interface. When used in a connected mode, the DataSet functions in a manner similar to ResultSet. A disconnected DataSet functions in a manner similar to a CachedRowSet. You can navigate, modify and delete records in a DataSet.

Technorati tags: JDBC, java

Flexy Flex from Adobe

“Moreover, MXML – the language on which the Flex 2 framework runs – takes such a minimalist approach to developing Web UIs that it beats Ruby and all other Java Web frameworks hands down. So it’s worth your while to try rich Internet application programming with Flex 2. You’ll think twice before using Java or any server-side scripting language to write Web UIs.”

Mario Morejon, CRN Test Center

Today I used Adobe Flex, the new emerging web designing as well as programming tool. Flux is great. Being a J2EE developer as well as an eclipse user, its eclipse nature helped me to do some works with it. Yeah its really interesting to me. After that I had searched for some more practical comments about this Flex work and happened to see the following posts.

One is about its troubles :Trouble with Adobe Flex

Another one is an interview with an expert Web programmer Anatole Tartakovsky of Farata Systems :Adobe Flex 2 – Answering Tough Questions About Enterprise Development

Sounds interesting..right?