JTable is the component which helps us to display the multi columned data. This post is about fetching database data and displaying it using JTable. First we will design our Frame public class MyFrame extends JFrame { private JTable table; private JScrollPane jsp; public MyFrame() { super("MyFrame"); setSize(400,400); setDefaultCloseOperation(EXIT_ON_CLOSE); setLocationRelativeTo(null); initMyFrame(); setVisible(true); } private void initMyFrame() { setLayout(new BorderLayout()); table=new JTable(); jsp=new JScrollPane(table); add(jsp,BorderLayout.CENTER); // database connection and remaining code will go here } public static void main(String args[]) { new MyFrame(); } }