I attempted to move the label to a specific location but it failed, anyone have an idea how to fix this?
package Main;
import javax.swing.*;
import java.awt.*;
public class Bread {
public static void main(String[] args) {
JFrame B = new JFrame();
B.setVisible(true);
B.setSize(800, 600);
B.setResizable(false);
B.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
B.setTitle("LolzWut?");
B.setBackground(Color.WHITE);
B.setLayout(new FlowLayout());
JLabel Label = new JLabel("Test");
Label.setText("Label Text");
B.add(Label);
Label.setLocation(200, 300);
}
}