RCP SWT export grid data

Hello Friends,

This is one of my tutorials for people working with RCP, SWT, JFace to export grid data. It is very obvious to display data in a grid/tabular form. Most of the times, user wants to export the data which is being displayed so how to export grid data from the grid to an output file. This is not that tricky to achieve. Lets see how to export grid data from a TreeViewer grid to the console. You can replace the console output to be dumped in any output file as per your convenience and instead of TreeViewer you can use any grid type of JFace/SWT.

Continue reading “RCP SWT export grid data”

Internal implementation of HashMap

Internal implementation of HashMap

This is one of the most commonly asked interview questions, “What is the Internal implementation of HashMap” OR “What are the data structures used in HashMap” OR “How HashMap maintains the uniqueness of keys”. In this tutorial, we will get answers for all these questions.  Continue reading “Internal implementation of HashMap”

Jadclipse decompiler plugin

This is one of the tutorials regarding eclipse to integrate – java jadclipse decompiler plugin. Jadclipse provides a plugin for eclipse to decompile the class file on fly and show the content. There are many other ways to de compile the class file and to integrate this plugin with your IDE. You can also refer – https://marketplace.eclipse.org/content/eclipse-class-decompiler. However not everytime and everywhere this may work. Lets see how to manually configure and integrate the jadclipse plugin in eclipse.

Continue reading “Jadclipse decompiler plugin”

Spring Hibernate Integration

In this post we will be discussing on Spring Hibernate integration. As we all know Spring provides an ORM support and one of the best available ORM tool to be integrated with Spring is Hibernate. The integration is very much simple and comes with lot of flexibility which is the biggest advantage Spring comes with. Lest create a step wise project for simple application. Continue reading “Spring Hibernate Integration”

Spring JDBC configuration

This post explains the Spring JDBC configuration for accessing database in any Spring application. One or the most commonly used framework in java Spring gives support for ORM and JDBC, in this part we will look into configuration of JDBC with Spring. Continue reading “Spring JDBC configuration”

Datatables server side processing in Java

This post explains implementing datatables server side processing in java. Check out Datatables with Spring MVC example from my previous blogs to understand in details. In this post I will be explaining server side processing on datatables, that is loading data on demand in datatable using AJAX. Continue reading “Datatables server side processing in Java”

Spring MVC login example

SPRING MVC is commonly used framework for creating web applications in JAVA. Here we will see the common implementation of SPRING with MVC pattern. At the end of this tutorial we will have a spring mvc login example, which will help all the newbies to get started with Spring.

Continue reading “Spring MVC login example”

Datatables with Spring MVC

This tutorial explains the implementation of Datatables with Spring MVC. Most of you all will be aware of usage of data tables in a web application, here we will see how to integrate it with Spring MVC application. This is like any other web page that we create in our MVC application, the only different thing here is using jQuery’s data table to display the data in a tabular form and with additional options like paging, searching and sorting. Continue reading “Datatables with Spring MVC”

Convert String to XML file in Java.

Hello Friends,

In the previous example we have seen how to convert XMl to String. Now this example will do the exact opposite of the previous one i.e. convert from String to XML. We will now try to convert the String stream into an XML file object. Here is the simple code for that.

Continue reading “Convert String to XML file in Java.”

Convert XML file to String Object in Java.

Hello Friends,

This is one of my tutorials in java with respect to XML, to convert xml file to string. Sometimes while working with web-services we may come accross with the requirements of sending the updates to the web-service via a XML file. For the same you may need to convert the XML file into a stream of String (however we can pass XML file to web-services for updation). But, at some times if you need to update the values or attributes of the XML and then send it as String then following code will do it for you.

Continue reading “Convert XML file to String Object in Java.”