Package org.nlogo.sdm.gui

Source Code of org.nlogo.sdm.gui.AggregateEditorTab

// (C) Uri Wilensky. https://github.com/NetLogo/NetLogo

package org.nlogo.sdm.gui;

import org.nlogo.window.ErrorLabel;

import java.awt.BorderLayout;

strictfp class AggregateEditorTab
    extends javax.swing.JPanel {

  AggregateEditorTab(AggregateModelEditor editor, java.awt.Component contents) {
    setAlignmentX(LEFT_ALIGNMENT);
    setAlignmentY(TOP_ALIGNMENT);
    setLayout(new BorderLayout());

    AggregateModelEditorToolBar toolbar =
        new AggregateModelEditorToolBar(editor);
    editor.setToolbar(toolbar);
    add(toolbar, BorderLayout.NORTH);

    javax.swing.JPanel codePanel = new javax.swing.JPanel(new java.awt.BorderLayout());
    ErrorLabel errorLabel = new ErrorLabel();
    codePanel.add(errorLabel, BorderLayout.NORTH);
    codePanel.add(new javax.swing.JScrollPane(contents), BorderLayout.CENTER);

    add(codePanel, java.awt.BorderLayout.CENTER);
  }
}
TOP

Related Classes of org.nlogo.sdm.gui.AggregateEditorTab

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.