LANGUAGES

  • Java swing

Saturday, February 11, 2017

JAVA swing GUI Programming

Introduction to JAVA swing

We are going to start a new chapter called JAVA swing, this a inbuilt library of JAVA which is specially use for develop GUI programs. Also this belongs to front end coding. 
                     today there are many GUI applications, users who are using this applications don't know what happens in back end in a application they only know how operate front end part that means the GUI part of applications so in this lesson we are going to learn how to develop this GUI part using this Swing library 

OK let's start Before that you need to know following things

  1. for this GUI programing you need a IDE(Intergrated development environment) i am going to use the "Eccilps" as the IDE you can download this following link.              https://eclipse.org/downloads/
  2. you need to know the basics of java language as instance                    
    • how to define a class.
    • how to define a method.
    • polymorphism.
    • overriding / overloading.
    • object oriented consent.
    • and more....  
  3. basic knowledge of how to work in eccilps.

JAVA swing components 


In JAVA swing library there are lots of components to create GUI application. Components can be divided in to two parts

  • Containers 
  • Jcomponents 

following hierarchy demonstrates the Swing library


In java swing we place JComponents in the containers we will see how it gonna be. as the another libraries this swing library is also inherited from object class 


1st Lesson

simple GUI Program  

In this lesson we are going to create simple GUI window I am going to do it using eccilps