1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
ublic class AddDataFrame extends JInternalFrame{
BdGestion _bdg;
Object[] _listDB = new Object[] {"bd1", "bd2","bd3", "bd4"};
AddDataFrame(BdGestion bdg)
{
super("Adding Data", true, true,false);
_bdg=bdg;
this.setSize(300, 200);
this.setLayout(null);
JLabel choose = new JLabel("Choose a base where add the data:");
choose.setBounds(40, 10, 200, 20);
this.add(choose);
Choice chooseList = new Choice();
for (int i = 0; i < _listDB.length; i++)
{
chooseList.add((String)_listDB[i]);
}
chooseList.setBounds(40, 55, 200, 30);
this.add(chooseList);
JLabel or = new JLabel("or");
or.setBounds(130,80,20,20);
this.add(or);
JButton newBase = new JButton("Create a new DataBase");
newBase.setBounds(40,110,200,30);
this.add(newBase);
this.setBounds(300, 150, 300, 200);
this.setVisible(true);
}
} |
Partager