public void setBounds(int x, int y, int width, int height) { button.getParent().remove(button); button.setBounds(x, y, width, height); button.addToParent(button.getParent()); // will i have to do this for // every method? // why doesn't the component remain malleable after it's added? }
public void setText(String text) { button.getParent().remove(button); button.setText(text); button.addToParent(button.getParent()); // maybe just emulate effects // found in addToParent() }