package tab_example; import java.awt.*; import java.awt.event.*; import javax.swing.*; import edu.stanford.smi.protege.widget.*; // an example tab public class TabExample extends AbstractTabWidget { private JButton button; private JTextField field; // startup code public void initialize() { // initialize the tab text setLabel("Frame Counter"); // create the output text field field = new JTextField(10); field.setEnabled(false); field.setHorizontalAlignment(JTextField.RIGHT); // add the components to the tab widget setLayout(new FlowLayout()); add(field); } // this method is useful for debugging public static void main(String[] args) { edu.stanford.smi.protege.Application.main(args); } }