function initialize(h,view)

import com.mathworks.mwswing.*;
import java.awt.*;
import java.swing.*;

%% Create Tabbed panel to host tabs
h.Handles.TabPane = MJTabbedPane;

%% Add tabbed pane to uitspanel host panel
h.Handles.Container = javax.swing.Box(javax.swing.BoxLayout.X_AXIS);
if view.AxesGrid.Parent.jpanel.isValid
    awtinvoke(h.Handles.Container,'add(Ljava/awt/Component;)',...
        h.Handles.TabPane);
    awtinvoke(h.Handles.Container,'add(Ljava/awt/Component;)',...
        javax.swing.Box.createHorizontalGlue);
    awtinvoke(view.AxesGrid.Parent.jpanel,'add(Ljava/awt/Component;)',...
        h.Handles.Container);
else
    h.Handles.Container.add(h.Handles.TabPane);
    h.Handles.Container.add(javax.swing.Box.createHorizontalGlue);
    view.AxesGrid.Parent.jpanel.add(h.Handles.Container);
end
