set location of a label java code example Example: set location of a label java JLabel label = new JLabel(); label.setLocation(x,y); //Set location