Skip to main content

Posts

Showing posts with the label Java SE

JSF + JPA + JasperReports (iReport) Part 2

In this post  is  a continuation of Jasper Report Part 1 . here we will discuss about some advanced jasper report concepts like passing complex object like List, Date object and how to create and use local variable in jasper report, Add the sub-report and background image to report. Check my latest post about  Integrate Charts into Jasper Reports . here i am using JPA (Java Persistence API) for accessing the Database. so i create the two entity ShoppingCart and Item. here ShoppingCart entity contain list of Item entities. then i am going to pass these objects to Jasper Report. (Check the video in below) ShoppingCart.java Item.java Create Report           now i am going create report. we can use iReport standalone or iReport Netbeans Plugin to create the report. first we need to create some fields in report. these fields are matched with ShoppingCart Bean property names and Data types also. ...

Splash Screen in Java Application

Traditionally we are using splash screen with progress bar through JFrame or JWindow in Java swing application. But this approach, big disadvantage is splash screen is loaded after jvm is ready and necessary classes are loaded. In Java 6 provides convient way to show the splash screen even before jvm is get ready. It can integrate into JAR file also. When double click the jar the splash screen show right now. when  jvm start loading. after loading jvm we can procees the splash screen ie. we draw into splah screen, show progress bar , etc.. Java supports splash screen in gif,  png , and jpeg  format. We need to set command line parameter -splash as follows When we make jar bundle that time we need to add Splash Screen entry into manifest.mf file in jar Tip: This Feature only works latest Java 6 Version Its retrieve the Splash Screen image mentions in command...