class RandomGraphUIImpl implements RandomGraphUI {

    private RandomGraphPanel panel;
    private RandomGraph randomGraph;

    public RandomGraphUIImpl() {
    }

    @Override
    public JPanel getPanel() {<FILL_FUNCTION_BODY>}

    @Override
    public void setup(Generator generator) {
        this.randomGraph = (RandomGraph) generator;

        //Set UI
        if (panel == null) {
            panel = new RandomGraphPanel();
        }
        panel.nodeField.setText(String.valueOf(randomGraph.getNumberOfNodes()));
        panel.edgeField.setText(String.valueOf(randomGraph.getWiringProbability()));
    }

    @Override
    public void unsetup() {
        //Set params
        randomGraph.setNumberOfNodes(Integer.parseInt(panel.nodeField.getText()));
        randomGraph.setWiringProbability(Double.parseDouble(panel.edgeField.getText()));
        panel = null;
    }
}

        if (panel == null) {
            panel = new RandomGraphPanel();
        }
        return RandomGraphPanel.createValidationPanel(panel);
    
<no_super_class>