JComponent supports drawing specialized borders around itself. This can be done using the setBorder(Border border) method. The javax.swing.border package provides classes to create several types of Border. To create these borders it is advisable to always use the javax.swing.BorderFactory class. This is a factory pattern implementation for creating swing borders.
This example explains what a Singleton design pattern is and how to use it.
This example explains how data can be appended to files by using the RandomAccessFile class. The RandomAccessFile class allows to read and write data at any arbitrary location in an existing file. The following example illustrates how it can be used to append text/binary data at the end of files.
This example explains how a File object can be used to view details of a File or Directory
This article attempts to explain a simple way to implement a connection pool for use in your applications. Connection pools are used in various applications to streamline the access to a database or some such resource that needs to be used by various components of the application for brief periods of time.