hvivox
Setembro 19, 2006, 8:53pm
#1
[color=black][/color]NAO ESTOU CONSEGUINDO POSICIONAR BOTOS, LABEL E OUTROS ITENS NO JFAME NA ORDEM QUE DESEJO. JA PESQUISEI SOBRE OS GERENCIADORES DE LAYOUT, MAS, AINDA ENCONTRO ALGUMAS DIFICUDADES, CONTO COM SUA AJUDA.
OBRIGADO![color=blue][/color] :?:
Luca
Setembro 19, 2006, 8:57pm
#2
Olá
Bem vindo ao GUJ.
Não escreva mensagens com tudo em maiúsculas a menos que queira aborrecer alguém.
E releia sua mensagem porque parece que faltam algumas letras.
[]s
Luca
hvivox
Setembro 19, 2006, 9:13pm
#3
vx tem alguam dica para mim professor PASCOAL!
Já estou esperando, e obrigado pela aula
Cara, eu uso o Jdeveloper 10g e nele tem o XYLayout, onde vc consegue posicionar os componentes no local q vc deseja.
Um Exemplo de código é:
import java.awt.Button;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTable;
import oracle.jdeveloper.layout.XYConstraints;
import oracle.jdeveloper.layout.XYLayout;
public class Class1 extends JFrame {
private XYLayout xYLayout1 = new XYLayout();
private JLabel jLabel1 = new JLabel();
private JTable jTable1 = new JTable();
private Button button1 = new Button();
public Class1() {
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setSize(new Dimension(690, 300));
this.getContentPane().setLayout(xYLayout1);
jLabel1.setText("jLabel1");
button1.setLabel("button1");
this.getContentPane().add(button1,
new XYConstraints(580, 225, 68, 23));
this.getContentPane().add(jTable1, new XYConstraints(0, 65, 680, 135));
this.getContentPane().add(jLabel1, new XYConstraints(0, 0, 685, 55));
}
}