package com.organization4242.delmgorb.View;

import com.organization4242.delmgorb.Model.PlotModel;
import net.ericaro.surfaceplotter.JSurfacePanel;

import javax.swing.*;
import java.awt.*;

/**
 * Created by ilya-murzinov on 22.02.14.
 */
public class PlotView extends JPanel {
    JSurfacePanel surfacePanel;

    public PlotView(PlotModel model) {
        surfacePanel = new JSurfacePanel(model.getModel());
        initComponents();
    }
    
    public void setTitleText(String text) {
        surfacePanel.setTitleText(text);
    }

    private void initComponents() {
        setLayout(new BorderLayout());
        model.getModel().plot().execute();
        surfacePanel.setBackground(Color.white);
        surfacePanel.setConfigurationVisible(true);
        add(surfacePanel, BorderLayout.CENTER);
    }
}

@@ -408,173 +408,8 @@
 ));%0A
-        initComponents();%0A    %7D%0A    %0A    public void setTitleText(String text) %7B%0A        surfacePanel.setTitleText(text);%0A    %7D%0A%0A    private void initComponents() %7B%0A
     
@@ -641,10 +641,106 @@
 ;%0A    %7D%0A
+    %0A    public void setTitleText(String text) %7B%0A        surfacePanel.setTitleText(text);%0A    %7D%0A
 %7D%0A

Update PlotView.java