Problem 2
In what way JButton is better than Button Class? Explain with an example.
Problem 4
Design a text editor similar to Notepad implementing Swing, event and IO File handling.
Problem 5
Write a Java program to display the following \(3 \times\) 3 magic square ( total \(=15\) ) using JTable: $$ \begin{array}{|l|l|l|} \hline 2 & 9 & 4 \\ \hline 7 & 5 & 3 \\ \hline 6 & 1 & 8 \\ \hline \end{array} $$
Problem 9
Explain any two event Listener and its methods.