public OptionPanelLookahead(String name, String explain, String imgPath) {
super(name, explain, imgPath);
if (m_defaultDepth == 0) {
// find out the default values
LookaheadTester tmp = new LookaheadTester(new FSM());
m_defaultDepth = tmp.getDepth();
m_defaultMaxLength = tmp.getMaxLength();
}
this.setLayout(new GridLayout(2, 2));
add(new JLabel("Lookahead Depth:"));
m_lookaheadDepth = new JTextField(Integer.toString(m_defaultDepth));