how to put jlabel inside of center of jpanel code example Example: jlabel on the center of a jpanel panel.setLayout(new GridBagLayout()); panel.add(label);