static void addToWindowSplitRight(Component c, Component toAdd) { JFrame frame = getFrame(c); frame.setContentPane(jhsplit(frame.getContentPane(), toAdd)); revalidate(frame); }