Advanced Java Programming207810 marksIntroduction
Compare AWT with Swing. Write a GUI program using components to find sum and difference of two numbers. Use two text fields for giving input and a label for output. The program should display sum if user presses mouse and difference if user release mouse.
Compare AWT with Swing. Write a GUI program using components to find sum and difference of two numbers. Use two text fields for giving input and a label for output. The program should display sum if user presses mouse and difference if user release mouse.[10]
--- Feature AWT (Abstract Window Toolkit) Swing --------- Package java.awt javax.swing Components Heavyweight (depend on OS native components) Lightweight (drawn by Java itself, not OS) Look and Feel Platform dependent (looks different on each OS) Platform independent (consistent look on all OS) ...