Archive | TUT Java swing

[JavaSwing] JButton

Content Creating Simple Ways to JButton Action Set margin JButton is an object that allows us to click on will do something. Example button “Compute” below, when clicking on it will calculate interest based on the information entered in the JTextField Example 1: Create a simple JButton some point note * Initialize JButton: […]

[JavaSwing] JLabel

Contents Create a simple JLabel Put color, JLabel JLabel background color is often used to display text or images to make the instructions, instructions on the user interface. In the picture above using 4 JLabel user to correctly enter the required information. Example 1: Create simple JLabel result we are 3 JLabel as follows (Note file […]

[JavaSwing] HelloWorld

In this article we will learn some basic steps to create a JFrame – That's roughly the application framework. Example 1: Create 1 frame 250×200 title “HelloWorld” appears in the coordinates (300, 200) on-screen. We have 4 constructor 1 JFrame: JFrame() : Initialize a new frame invisible JFrame(GraphicsConfiguration qc) : Create a Frame is just […]