Select Menu

Combined Post

Mag Posts

Theme images by konradlew. Powered by Blogger.

Labels

  • Java Programming

Labels

  • Java Programming

Tags

  • Java Programming

Blogger templates

Blogger news

Facebook

Advertising

Blogroll

Popular Posts

Combined Posts 2

Mag Post 2

2 Column Post

Simple Post

Simple Post 2

New Carousel

Video Posts

This simple program demonstrate a simple JList, which holds a list of names. Each time a name is selected in the list, a ListSelectionEvent is generated, which is handled by the valueChanged() method defined by ListSelectionListener. It responds by obtaining the index of the selected item and displaying the corresponding name.

Here is the output of the program.



Here is the output of the java program





This is a Simple sketching program that was created using java. Some "awt" and "swing" libraries are used to create this java program. You can copy and paste this code or you can type this code in your IDE and try this code. This is a cool program to try even if this is a very simple basic java program.


This is a simple graphical user interface program that display some colourful circles and rectangles as a don not enter sign. Here AWT and SWING java libraries are used to create the layout of the program and colourful shapes inside the layout.