View Javadoc

1   // Copyright 2003, FreeHEP.
2   package org.freehep.graphicsio.exportchooser;
3   
4   import java.util.Properties;
5   
6   import javax.swing.JLabel;
7   
8   import org.freehep.swing.layout.TableLayout;
9   
10  /**
11   * 
12   * @author Mark Donszelmann
13   * @version $Id: InfoPanel.java 8584 2006-08-10 23:06:37Z duns $
14   */
15  public class InfoPanel extends OptionPanel {
16      public InfoPanel(Properties options, String rootKey, String[] keys) {
17          super("Info");
18  
19          for (int i = 0; i < keys.length; i++) {
20              add(TableLayout.LEFT, new JLabel(keys[i]));
21              add(TableLayout.RIGHT, new OptionTextField(options, rootKey + "."
22                      + keys[i], 40));
23          }
24      }
25  }