// author archive

chang

chang has written 7 posts for My Java Articles

Java Books I read

I’ll recommend this as one of the best Java book for beginners who want to learn Java programming language in a easy, interesting, and more relaxed way. the illustrations in the contents are very interesting and easy to understand.
Head First Java
Preview the book here

Populate data from database into JTable in Netbeans

How to populate data from database into JTable in Netbeans?
Suppose we had a table called Employee in our MS Access database and we want to retrieve and display all the data in a JTable component using NetBeans IDE. How to do that and what are the codes that we need to modify?

Custom JPanel with background image

Panel in Java can be customized to paint different color than the default color.
This can be done by overriding paintComponent method of the JPanel.

Java IDE – Netbeans

Runs on Windows, Linux, Mac OS X and Solaris. NetBeans IDE is open-source and free. A free, open-source Integrated Development Environment for software developers. You get all the tools you need to create professional desktop, enterprise, web, and mobile applications with the Java language, C/C++, and Ruby. NetBeans IDE is easy to install and use [...]

Java IDE – Eclipse

Eclipse is an open source community whose projects are focused on building an open development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle.

How to sort an array

We normally like to write complex algorithm to sort an array in Java where many of us overlooked the Arrays class in Java which can be very handy in sorting an array.The Arrays class has a static method called sort which exists in many overloaded versions so you can pass in an array of any primitive type, or pass in an array of Strings or other Objects.

Shuffling List Objects

Let say we have a Collection of elements which we want to do some operations, for example shuffling the elements in a Vector. In this cases, the shuffle static method will be very usefull in helping out to do the job. We don’t even need to think of complicated algorithms to shuffle the Vector elements. [...]

Categories