Java IDE

In this tutorial you will learn about the Java IDE and its application with practical example.

Java IDE

IDE(Integrated Development Environment ) did our work easy. Till now we were using notepad to write our program and then we used to compile on command line, but now we do not need to do hard work .We will learn here that how to use IDE and make Desktop Application. Here I have used Netbeans IDE for creation of Swing project. Follow below steps for making our first Desktop application. If you do not have NetBeans so please download it from “” this link.

1st Step: After successful installation of Netbeans , click on File option which is on top left corner in IDE. Like below image.

image001

Step 2nd : Click on New Project and you will get screen like below image.

image003

Step 3rd : Click on “Java” and then select “Java Application” and then click on next you will next sceen like below image.

image005

Finally click on Finish option and you are set with your first application. Few steps are remaining for creation and need some coding also. Checkout below steps for it.

 

Step 4th : Right click on Project and then go to “New” and create your first JFrame. Like below images. Fill details about your JFrame and click on “Finish” .

image007

image009

Step 5th : So now we do not want to do coding for our design part. You can directly drag and drop whatever you want to add on Frame, it will appear on Frame. Checkout below images .

image011

image013

So it is simple design of login form.

Step 6th: In this step you will see that how we can directly use On click Action of button. Check below image .

Recommended:-  Swing JButton

image015

Step 7th: In this step we will see that how can we move from one frame to another frame. I have already created one more frame using same steps. Please you too create. On Click of button we will move this frame to another frame checkout below code for it. And use it in your code. I have also used JOptionPane here which is used to show alert message. You can try it by entering wrong username and password.

image017

// on click of Login Button Welcome frame will be disposed and Home Frame will appear.

image019

// Below Alert will appear when you entered wrong “Username” Or “Password”.

image021

So this was an example of our first application, In Next Article we will learn about connection with database and Building Jar file. I hope this will help you to understand basic of Java Application with IDE.

Recommended:-  Swing JFrame

 

In this tutorial we have learn about the Java IDE and its application with practical example. I hope you will like this tutorial.