0
I made a combo box, in netbeans by command, and I can’t change it from location (in frame), Bounts values change, but it doesn’t move. I’ve used all kinds of commands (setBounds, setpoint, setLocation, etc.).
public JComboBox<String> combo_1 = new JComboBox<String>();
public JComboBox<String> combo_2 = new JComboBox<String>();
public Tela(){
    setTitle("Agreste Tour");
    setSize(900,720);
    setLocationRelativeTo(null);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setVisible(true);
    setLayout(new BorderLayout());
    setContentPane(new JLabel(new ImageIcon(ClassLoader.getSystemResource("Imagem/Mapa.png"))));
    setLayout(new FlowLayout());
    setSize(900,720);
    setLayout(null);
    setResizable(false);
    setLayout(new FlowLayout());
    add(combo_1);
    add(combo_2);
    combo_1.setName("Origem");
    combo_1.setName("Destino");
    combo_1.setBounds(100, 500, 800, 100);
    System.out.println(""+combo_1.getBounds());
    JButton Okay = new JButton("Mostrar");
    getContentPane().add(Okay);
    Okay.addActionListener(this);
}
						
Okay, thank you very much!
– Marcos Neto
@Marcosneto if the answer helped you, you can accept it by clicking on
v, so you mark the question as concluded. :)– user28595