Weight Conversion app built on Maven Eclipse Window builder, (kg, lb, oz, gr)
- Simple app which converts kg, lb, oz, gr - Kilogram, Pound, Ounce, Gram. Conversion wokrs among privously mentioned weight parameters, it works in any way.
- The code represents a simple template for a Java Swing application. Here's how the code works:
- The code includes a package called
WeightConversionPCK
, which likely contains the classes related to the weight conversion functionality. - The code includes a class called
Main
in theWeightConversionPCK
package. This class serves as the entry point for the application. - In the
Main
class, themain
method is defined. This method is the starting point of the application. It uses theEventQueue.invokeLater
method to schedule the execution of aRunnable
object on the Event Dispatch Thread (EDT). The EDT is responsible for handling GUI events in Swing applications. - Within the
run
method of theRunnable
object, an instance of theUI
class is created. This suggests that there is a class namedUI
which likely represents the graphical user interface (GUI) of the weight conversion application. - The
UI
frame is set visible, which means the GUI window will be displayed to the user. - If an exception occurs during the execution, it is caught in the
catch
block and a stack trace is printed.