Package com.cburch.logisim.gui.log

Source Code of com.cburch.logisim.gui.log.ScrollPanel

/* Copyright (c) 2010, Carl Burch. License information is located in the
* com.cburch.logisim.Main source code and at www.cburch.com/logisim/. */

package com.cburch.logisim.gui.log;

import java.awt.BorderLayout;

import javax.swing.JScrollPane;

class ScrollPanel extends LogPanel {
  private TablePanel table;
 
  public ScrollPanel(LogFrame frame) {
    super(frame);
    this.table = new TablePanel(frame);
    JScrollPane pane = new JScrollPane(table,
        JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
        JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    pane.setVerticalScrollBar(table.getVerticalScrollBar());
    setLayout(new BorderLayout());
    add(pane);
  }
 
  @Override
  public String getTitle() {
    return table.getTitle();
  }

  @Override
  public String getHelpText() {
    return table.getHelpText();
  }

  @Override
  public void localeChanged() {
    table.localeChanged();
  }

  @Override
  public void modelChanged(Model oldModel, Model newModel) {
    table.modelChanged(oldModel, newModel);
  }
}
TOP

Related Classes of com.cburch.logisim.gui.log.ScrollPanel

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.