#dynamic sucks extends JFrame
.setVisible(true); .setSize(width, height); .setLayout(new FlowLayout()); //it is in package java.awt.FlowLayout //many layouts are there like FlowLayout, GridLayout, Null .setDefaultCloseOperation(JFrame.EXIT_ON_ClOSE); .setBackground(new java.awt.Color(93, 173, 226)); .setFont(new java.awt.Font("Times New Roman", 0, 16)); .add(obj); .getText(); .setText(String obj);
class JLabel //like displaying string
class JTextField //text box to write
class JButton //clickable button .getSource(); .addActionListener(obj);
class JRadioButton //radio button .isSelected();
class JCheckbox //check box .addItemListener(new ItemListener() {...} );
class ButtonGroup //grouping of buttons esp. radio button obj.add(buttonObj); //for various buttons