Coders Packet

Length Converter using Java GUI

By Ishika Gupta

This application is the Length Converter project which changes one unit of length to another as desired by the user.


We have used different application like:

JButton - The JButton class is used to create a labeled button that has platform-independent implementation.
JTextField - The object of a JTextField class is a text component that allows the editing of a single line of text.
JComboBox - The object of the Choice class is used to show the popup menu of choices.

In the "Length Converter", there are two combo boxes to select units from, a text field to input a number to convert, and another text field to display the result of the conversion and a "Convert" button which on pressing gives us the desired values.

The snapshots for the same:

Download Complete Code


  • ali :

    Thanks for this great work

  • Reply to this comment