setLocation of Label
Eu tenho todos os rótulos funcionando corretamente, mas o userLabel [3] não está se posicionando corretamente Não importa o que eu faça, o rótulo "Cor:" sempre aparece no quadro com uma coordenada x de 0 e uma coordenada y que é no meio do quadro.
JLabel[] userLabel = new JLabel[4];
for(int p = 0; p < userLabel.length; p++){
userLabel[p] = new JLabel();
userLabel[p].setSize(100,50);
frameSetUp.add(userLabel[p]);
}
userLabel[0].setText("Width of Frame:");
userLabel[1].setText("Height of Frame:");
userLabel[2].setText("# OF Balls:");
userLabel[3].setText("Color:");
userLabel[0].setLocation(10,35);
userLabel[1].setLocation(10,85);
userLabel[2].setLocation(10,135);
userLabel[3].setLocation(0,0); //no matter what coordinates I change this too, it wont reposition
Imagem: [IMG] http://i41.tinypic.com/23jfo9l.png [/ IMG]http://i41.tinypic.com/23jfo9l.png