swing

How to Create an Etched Border in Java

Submitted by donbermoy on
This tutorial will teach you how to create an etched border in Java. An etched border has an etched-in or etched-out effect and in default it is in etched-in effect. Like bevel borders, it has also constants of raised and lowered etched. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of etchedBorder.java. 2.

Progress Monitor in Java

Submitted by donbermoy on
This tutorial will teach you how to create a progress monitor in java. A ProgressMonitor class simply monitors a progress in any operation. Hence, we will not use the JProgressBar component here. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of progressMonitor.java. 2.

No Layout in Java (Absolute Positioning)

Submitted by donbermoy on
This tutorial will teach you how to provide a java swing program without a layout. We will use the keyword null here in the setLayout method and we will do the Absolute Positioning using the setBounds method. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of noLayout.java. 2.

SpringLayout as Layout Manager in Java

Submitted by donbermoy on
This tutorial is about the SpringLayout as Layout Manager in Java. A SpringLayout is a layout by defining constraints betweem the edges of the components. This attaches springs to other components taht lays out the children of its associated container according to a set of constraints. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of springLayout.java. 2.