Tutorials

GridLayout as Layout Manager in Java

Submitted by donbermoy on
This tutorial is about the GridLayout as Layout Manager in Java. A GridLayout is a layout where it has a grid within a component. This layout ignores the sizes of the component and resizes them fit the cell's dimension of the grid. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of gridLayout.java. 2.

FlowLayout as Layout Manager in Java

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that will have a FlowLayout as Layout Manager in Java. A FlowLayout as a layout manager provides a layout that is simple and used as default by the JPanel. It makes it every component seen according to its preferred size and arranges them in horizontal wrapping lines so that they will have spacing. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of flowLayout.java. 2.

BorderLayout as Layout Manager in Java

Submitted by donbermoy on
This tutorial is about the BorderLayout as Layout Manager in Java. A BorderLayout is a layout where it has a rectangular screen area divided into five regions - North, South, East, West, and Center position regions. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of borderLayout.java. 2.

JWindow and JFrame Component in Java

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that will have a JWindow and JFrame Component in Java. We will first differentiate the two components. The JFrame can be a container of other components, has title and border, and has buttons for minimize, maximize, and close. Unlike JFrame, a JWindow can also hold other components but it has no title and border, and no minimize, maximize, and close button. So, now let's start this tutorial! 1.

JToolBar Component in Java

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that will have a JToolBar in Java. A JToolBar provides a bar on the top of the program where it contains a group of components such as buttons, icons, labels, textfields, etc., that provide easy access to functionality of the other components. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of jToolBarComponent.java. 2.

JOptionPane Component in Java

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that will have a JOptionPane Component in Java. A JOptionPane lets the program pop up a dialog box that will let the user informs something. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of jOptionPaneComponent.java. 2. Import the javax.swing.* package to access the JOptionPane class.

JScrollPane Component in Java

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that will have a JScrollPaneComponent in Java. A JScrollPane implements scrollable view of a component that lets the user display a component that is large or one whose size can change using scrollbars. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of jScrollPaneComponent.java. 2.

JSplitPane Component in Java

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that will have a JSplitPane Component in Java. A JSplitPane is used to let the user divides the two components that can also be resized by the user. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of jSpliPaneComponent.java. 2.