1 package osm.jp.gpx.matchtime.gui;
3 import java.awt.Dimension;
4 import java.awt.LayoutManager;
5 import java.util.ResourceBundle;
7 import javax.swing.BoxLayout;
8 import javax.swing.JLabel;
9 import javax.swing.JPanel;
10 import javax.swing.JTextField;
14 * この1インスタンスで、1パラメータをあらわす。
16 public class ParameterPanel extends JPanel {
17 private static final long serialVersionUID = 4629824800747170556L;
18 public JTextField argField;
19 public JLabel argLabel;
20 public ResourceBundle i18n = ResourceBundle.getBundle("i18n");
22 @SuppressWarnings("OverridableMethodCallInConstructor")
23 public ParameterPanel(String label, String text) {
26 argLabel = new JLabel(label);
27 argField = new JTextField(text);
29 this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
30 this.setMaximumSize(new Dimension(1920, 40));
35 public String getText() {
36 return this.argField.getText();
39 public ParameterPanel(boolean isDoubleBuffered) {
40 super(isDoubleBuffered);
41 // TODO 自動生成されたコンストラクター・スタブ
44 public ParameterPanel(LayoutManager layout) {
46 // TODO 自動生成されたコンストラクター・スタブ
49 public ParameterPanel(LayoutManager layout, boolean isDoubleBuffered) {
50 super(layout, isDoubleBuffered);
51 // TODO 自動生成されたコンストラクター・スタブ