You can change size by setting the preferred size.
JButton jbutton1 = new JButton("Button 1");
jbutton.setPreferredSize(new Dimension(150, 50));
no need to worry about primary key in this assignment , just get the data from the GUI and write into the text file, you can keep the cnic to string type.