import javax.swing.JFrame; import javax.swing.JLabel; public class mainFrame extends JFrame { private JLabel lb1; public mainFrame() { super("Title"); setVisible(true); setSize(200, 150); lb1 = new JLabel(); lb1.setText("Hello world!"); add(lb1); } public static void main(String args[]) { mainFrame frm1 = new mainFrame(); } }
super
JFrame
this
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)