hvivox 19 de set. de 2006
vx tem alguam dica para mim professor PASCOAL!
Já estou esperando, e obrigado pela aula
lucas.lnx 26 de set. de 2006
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 ));
}
}