SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

ITEXT PDF / NOTES</>↗
iText PDF04 Dec 2011

How do I use iText Phrase class?

The com.itextpdf.text.Phrase represent a phrase of text in the Document object. The Phrase object knows how to add spacing between lines of text. So if we add some phrase into the document it will start on a new line when it reaches the right edge of the document. The default leading / line spacing of […]

Wayan · 2 min read
ITEXT PDF / NOTES</>↗
iText PDF04 Dec 2011

How do I use iText Chunk class?

A chunk com.itextpdf.text.Chunk is the smallest significant part that can be added to a document. A chunk is a string with Font information. A chunk doesn’t add line breaks, a paragraph spacing or any other spacing. The layout parameters of a chunk should be defined in the object to which this chunk is added. When […]

Wayan · 2 min read
ITEXT PDF / NOTES</>↗
iText PDF04 Dec 2011

How do I use iText Document class?

The com.itextpdf.text.Document is the core class of the iText library. This class represents a pdf document. Basically to work with a document we must first create an instance of a Document. After the instance created we open the document by calling the open() method. To add some content into the document we can use the […]

Wayan · 2 min read
CORE API / NOTES</>↗
Core API24 Aug 2011

How do I check whether a thread group has been destroyed?

You can use ThreadGroup.isDestroyed() method to check whether a thread group and its subgroups has been destroyed. package org.kodejava.lang; public class CheckGroupDestroy { public static void main(String[] args) { ThreadGroup grandParent = new ThreadGroup("GrandParent"); ThreadGroup uncle = new ThreadGroup(grandParent, "Uncle"); ThreadGroup parent = new ThreadGroup(grandParent, "Parent"); ThreadGroup son = new ThreadGroup(parent, "Son"); ThreadGroup daughter = […]

Wayan · 1 min read
CORE API / NOTES</>↗
Core API24 Aug 2011

How do I destroy a thread group?

You can destroy a thread group by using destroy() method of ThreadGroup class. It will cleans up the thread group and removes it from the thread group hierarchy. It’s not only destroy the thread group, but also all its subgroups. The destroy() method is of limited use: it can only be called if there are […]

Wayan · 1 min read
JDBC / NOTES</>↗
JDBC22 Aug 2011

How to automatically close resources in JDBC?

One thing that we need to do manually when programming using JDBC is to make sure to close all the resources that we use. All resources including the ResultSet, Statement and Connection must be closed. This will usually produce a lot of boilerplate code in our program. Starting from JDBC 4.1, which is a part […]

Wayan · 2 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.