center.add(newbutton);
// After adding/removing/changing a component you must
// tell its parent container to do a new layout. We do
// this with the JComponent method revalidate or
// with the older Container method validate.
center.revalidate();
// center.repaint();