OSDN Git Service

GUIのパネルボタンの配置を変更
[importpicture/importpicture.git] / src / osm / jp / gpx / matchtime / gui / ParameterPanel.java
1 package osm.jp.gpx.matchtime.gui;
2
3 import java.awt.Dimension;
4 import java.awt.LayoutManager;
5 import java.util.ResourceBundle;
6
7 import javax.swing.BoxLayout;
8 import javax.swing.JLabel;
9 import javax.swing.JPanel;
10 import javax.swing.JTextField;
11
12 /**
13  * パラメータを設定する為のパネル。
14  * この1インスタンスで、1パラメータをあらわす。
15  */
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");
21
22     @SuppressWarnings("OverridableMethodCallInConstructor")
23     public ParameterPanel(String label, String text) {
24         super();
25
26         argLabel = new JLabel(label);
27         argField = new JTextField(text);
28                 
29         this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
30         this.setMaximumSize(new Dimension(1920, 40));
31         this.add(argLabel);
32         this.add(argField);
33     }
34
35     public String getText() {
36         return this.argField.getText();
37     }
38
39     public ParameterPanel(boolean isDoubleBuffered) {
40         super(isDoubleBuffered);
41         // TODO 自動生成されたコンストラクター・スタブ
42     }
43
44     public ParameterPanel(LayoutManager layout) {
45         super(layout);
46         // TODO 自動生成されたコンストラクター・スタブ
47     }
48
49     public ParameterPanel(LayoutManager layout, boolean isDoubleBuffered) {
50         super(layout, isDoubleBuffered);
51         // TODO 自動生成されたコンストラクター・スタブ
52     }
53
54 }