GUI Notes
GUI Notes
ii. AwT library :- (Abstract Windows Toolkit) former platform dependence for
component across all platform but AWT on the other hand, the look
which the program is being run. To use any of this library simply code
e.g. javax.swing.joptionpane;
javax.awt.flowlayout
simply code
javax.swing.*
javax.awt.*
2. J text field (=) Text box is used for entering and accepting data
26
4. J combobox (=) combobox is used to drop down list
5. J Radio button (=) Radio button is used to select single item from a
list
list
7. JUST (=) list box is used to list items from where selection is made
security code
Import.javax.swing.joptionpane;
String no 1, no 2;
27
Sum = num 1 + num 2;
to a user
user
joptionpane.PLAIN_MESSAGE);
28
Example
Solution
Import.javax.swing.joptionpane
Import.java.util.scanner
Public
Public
joption. INFORMATION_MESSAGE)
29
Case 2: joptionpane.showmessage dialog (null, ‘you are about deleting a data’,
joption. WARNING_MESSAGE)
Break;
Break;
Break;
ERROR_MESSAGE)
30