I have been looking at your code for a while, but I cannot understand what you are really trying to do.
} else if (source == b1) {
aFrame.setVisible (false);
pane = new JPanel ();
DBConnectionclass.getOracleJDBCConnection (text2.getText (), text5.getText (), text6.getText ());
//Arrraylist for schemas
listofusers = dbob.getArrayofUsers ();
String[] strarray = new String[109];
strarray = listofusers.toArray (strarray);
System.out.println (strarray.length);
list = new JComboBox (strarray);
list.addItemListener (this);
addComponent (p, list, 1, 0, 1, 1, GridBagConstraints.FIRST_LINE_START, GridBagConstraints.HORIZONTAL, -1, -1);
addComponent (p, new JLabel ("SchemaName"), 0, 0, 1, 1, GridBagConstraints.FIRST_LINE_START, GridBagConstraints.HORIZONTAL, -1, -1);
setContentPane (p);
newframe.setVisible (true);
newframe.add (p);
newframe.setSize (2000, 2000);
What exactly do you want to happen here? You hide the window, create a JPanel, create a ComboBox, but dont add the CB to the JPanel. This way the BC will never be changed ofcourse.
Can you explain a little of what you want to happen here?