forked from RITJBF/JBioFramework
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChromatographyMain.java
More file actions
39 lines (30 loc) · 979 Bytes
/
ChromatographyMain.java
File metadata and controls
39 lines (30 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package main.java.Chromatography;
//GUI Components
import java.awt.*;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JButton;
public class ChromatographyMain extends JPanel {
public ChromatographyMain() {
super(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridy = 0;
super.add(mkHeadPanel(), c);
c.gridy = 1;
super.add(mkHeadPanel(), c);
}
private JPanel mkHeadPanel() {
JPanel jp = new JPanel();
TextField textField = new TextField("Input the information you want");
Button button = new Button();
jp.add(textField);
jp.add(button);
return jp;
}
/* Label label1 = new Label("Name:");
TextField textField = new TextField ();
HBox hb = new HBox();
hb.getChildren().addAll(label1, textField);
hb.setSpacing(10);*/
}