Pessoal estou criando um form utilizando o SpringLayout.
Estive lendo no link abaixo como utilizar o SpringLayout
http://java.sun.com/docs/books/tutorial/uiswing/layout/spring.html
quando me depareu com este trecho:
String[] labels = {"Name: ", "Fax: ", "Email: ", "Address: "};
int numPairs = labels.length;
//Create and populate the panel.
JPanel p = new JPanel(new SpringLayout());
for (int i = 0; i < numPairs; i++) {
JLabel l = new JLabel(labels[i], JLabel.TRAILING);
p.add(l);
JTextField textField = new JTextField(10);
l.setLabelFor(textField);
p.add(textField);
}
//Lay out the panel.
SpringUtilities.makeCompactGrid(p,
numPairs, 2, //rows, cols
6, 6, //initX, initY
6, 6); //xPad, yPad
essa classe SpringUtilities não existe na API do java (JDK 6) existe?
verifiquem por favor se vocês conseguem utilizar essa classe... pq eu não consegui!
Obrigado pela ajuda.