A label is used to write text in an application, display title and interactive text. To make it, I will use the Swing method name “JLabel”. It’s easy to make and similar to a button. Start with the same syntax as a button: JLabel label = new JLabel(“My first JLabel!”); label.setBounds(0, 0, 200, 30); frame.add(label); You […]Read more "Java: How to Create a Label"
If you don’t know how to make a frame, I refer you to my old blog on it. Use your already made method “main” in your “Main” class, this method is where you will stock all your information for your “Visual application” aspect. To make a button, we will use the Swift method “JButton”. Start […]Read more "Java: How to Create Button"
To make an organize project, you need to make a good structure. First of all, start by creating a new project (File->New->Java Project). I will name it “Tutorial” but you can name it like you want. Now that the project is created, let’s start to organize and make it easier to use it. Start by […]Read more "Java: How To Create an Organize New Project"
If you don’t know how to make a new project, I refer you to my old blog on it. First of all, let’s make our first class, I will name it “Main” because it’s our main class and place it on our main Package too. Check the “public static void main(String args)” checkbox. That will […]Read more "Java: Create a Basic Application"