Sort ArrayList of custom Objects by property

By default, the ArrayList's elements are displayed according to the order they are added into the list. You can sort the ArrayList to make it a natural order (alphabetically or numbers in ascending order). The following example shows the use of the Collections.sort(List) to sort an ArrayList. import java.util.ArrayList; import java.util.Collections; public class SortArrayList { ...
Continue Reading »

Lightweight Portal Framework using jQuery

Using JPolite Plugin we can create a portal framework in our application. JPolite is an extension of jQuery JavaScript framework. Here in this tutorial I am going to explain how to use JPolite plugin to develop portal framework in our applications. We need the following JavaScript files: jquery.js: It is jQuery Plugin. jquery.ui.js: It is jQuery UI Plugin. thickbox.js: ...
Continue Reading »

Jasper Reports Basics

JasperReports is an open source Java reporting tool, it can be used in Java-enabled applications, including Java EE or web applications, to generate dynamic reports/content into several output types including PDF, HTML, CSV, and XLS. Reports are defined in an XML file format, called JRXML, which can be hand-coded, generated, or designed using iReport engine ...
Continue Reading »