import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JTable;
import java.awt.FlowLayout;
import javax.swing.JScrollPane;
import javax.swing.plaf.basic.BasicComboPopup;
import javax.swing.JComboBox;
public class Test_Table extends JFrame{
private JFrame jFrame = null; // @jve:decl-index=0:visual-constraint="162,-6"
private JPanel jContentPane = null;
private JScrollPane jScrollPane1 = null;
private JTable jTable = null;
private JComboBox jComboBox = null;
/**
* This method initializes jFrame
*
* @return javax.swing.JFrame
*/
private JFrame getJFrame() {
if (jFrame == null) {
jFrame = new JFrame();
jFrame.setSize(new Dimension(413, 334));
jFrame.setTitle("Testing Table");
jFrame.setContentPane(getJContentPane());
}
return jFrame;
}
public Test_Table(){
super();
intialize();
}
void intialize(){
this.setContentPane(getJContentPane());
this.setName("JFrame1");
this.setTitle("Test");
this
.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
this.setBounds(23, 36, 526, 301);
}
/**
* This method initializes jScrollPane1
*
* @return javax.swing.JScrollPane
*/
private JScrollPane getJScrollPane1() {
if (jScrollPane1 == null) {
jScrollPane1 = new JScrollPane();
jScrollPane1.setPreferredSize(new Dimension(200, 100));
jScrollPane1.setViewportView(getJTable());
}
return jScrollPane1;
}
/**
* This method initializes jTable
*
* @return javax.swing.JTable
*/
private JTable getJTable() {
if (jTable == null) {
jTable = new JTable();
}
return jTable;
}
/**
* This method initializes jComboBox
*
* @return javax.swing.JComboBox
*/
private JComboBox getJComboBox() {
if (jComboBox == null) {
jComboBox = new JComboBox();
}
return jComboBox;
}
public static void main(String args[]){
Test_Table t = new Test_Table();
t.show();
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new FlowLayout());
jContentPane.add(getJComboBox(), null);
jContentPane.add(getJScrollPane1(), null);
}
return jContentPane;
}
}