Hi!
I'm making an app and I need to know how to set position of strings in java. Here is a code:
import java.awt.*;
import javax.swing.*;
public class Draw extends JFrame{
JPanel panel;
JLabel string;
public Draw(){
super("CO-LERNER");
setSize(300,150);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
setLocationRelativeTo(null);
string = new JLabel("Example");
panel.add(string);
add(panel);
}
}