Olá pessoal!
Minha tabela está toda desengonçada no frame, preciso arruma-la…segue o códio
package teste;
import java.awt.FlowLayout;
import javax.swing.*;
import org.jdesktop.swingx.*;
/**
*
* @author victor
*/
public class SwingXTeste extends JFrame
{
JXComboBox combo;
JXTable table;
JScrollPane scroll;
JRadioButton radio1;
JRadioButton radio2;
public SwingXTeste()
{
this.setResizable(false);
this.setTitle("FORM");
this.setSize(1280,768);
this.setLayout(new FlowLayout());
table = new JXTable();
scroll = new JScrollPane(table);
combo = new JXComboBox();
radio1 = new JRadioButton("Vermelho");
radio2 = new JRadioButton("Azul");
this.add(scroll);
this.add(combo);
this.add(radio1);
this.add(radio2);
}
public static void main(String[] args)
{
JFrame janela = new SwingXTeste();
janela.setDefaultCloseOperation(EXIT_ON_CLOSE);
janela.setLocationRelativeTo(null);
janela.setVisible(true);
}
}