public void setContentsPanel(ContentsPanel c) throws Exception {
public void setContentsPanel(ScreenRegion c) throws Exception {
    public void setContentsPanel(ContentsPanel c) throws Exception {        javax.swing.JFrame f = (javax.swing.JFrame) getJavaObject();        if (f != null) {            if (c != null) {                                java.awt.Container cp = f.getContentPane();                                if (cp != null) {                                        cp.add((javax.swing.JPanel) c.getJavaObject(), java.awt.BorderLayout.CENTER);                } else {                            throw new Exception("Could not set contents panel. The content pane is null.");                }            } else {                    throw new Exception("Could not set contents panel. The contents panel is null.");            }        } else {            throw new Exception("Could not set contents panel. The java frame is null.");        }    }