Box

BoxLayout as Layout Manager in Java

Submitted by donbermoy on
This tutorial is about the BoxLayout as Layout Manager in Java. A BoxLayout as a layout come from the Box class where it provides each component's x and y alignment properties with its sizes. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of boxLayout.java. 2.

JPasswordField Component in Java

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that has the JPasswordField Component using Java. The JPasswordField provides text fields for password entry and it does not show the characters that the user types. It will only display "*" for the password character. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of jPasswordFieldComponent.java. 2. Import the javax.swing.* package so that we can access the JFrame, JLabel, JPasswordField, and Box class.