-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKittingCell.java
More file actions
59 lines (46 loc) · 1.41 KB
/
KittingCell.java
File metadata and controls
59 lines (46 loc) · 1.41 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package main;
import gui.panels.ControlPanel;
import gui.panels.FactoryPanel;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.io.File;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
@SuppressWarnings("serial")
public class KittingCell extends JFrame {
// public ControlPanel factoryControls;
FactoryPanel factoryPanel;
ControlPanel cPanel;
public KittingCell() {
// Set Frame attributes
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new BorderLayout());
setResizable(false);
setTitle("Kitting Cell v2.0");
factoryPanel = new FactoryPanel();
cPanel = new ControlPanel(this);
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
new JScrollPane(factoryPanel), new JScrollPane(cPanel));
factoryPanel.setMinimumSize(new Dimension(800, 750));
splitPane.setOneTouchExpandable(true);
splitPane.setDividerLocation(1006);
add(splitPane, BorderLayout.CENTER);
pack();
setVisible(true);
factoryPanel.startAll();
}
/** Main routine to get gui started */
public static void main(String[] args) {
KittingCell kittingCell = new KittingCell();
}
public FactoryPanel getFactoryPanel() {
return this.factoryPanel;
}
public ControlPanel getControlPanel() {
return this.cPanel;
}
}