gbc.gridy = 2; // linha três
gbc.gridx = 1; // coluna dois
gbc.insets = new Insets(5, 5, 5, 5);
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.WEST; // esquerda
layout.setConstraints(botaoSair, gbc);
getContentPane().add(botaoSair);
gbc.gridy = 2;
gbc.gridx = 1; // coluna
gbc.insets = new Insets(5, 5, 5, 5);
gbc.gridwidth = 2;
gbc.anchor = GridBagConstraints.EAST; // direita
layout.setConstraints(limparBotao, gbc);
getContentPane().add(limparBotao);
Oi,
O gridx teria que mudar…
Tchauzin!
[quote=lina]Oi,
O gridx teria que mudar…
Tchauzin![/quote]
Já tentei várias posições mas nenhuma estéticamente legal