-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyFrame.java
More file actions
32 lines (25 loc) · 825 Bytes
/
MyFrame.java
File metadata and controls
32 lines (25 loc) · 825 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
package Frames;
import Utilz.SqlProperties;
import javax.swing.*;
import java.awt.*;
import java.util.Map;
public class MyFrame extends JFrame {
private ProccessesPanelTab proccessesPanel;
private ResultView resultView = new ResultView();
public MyFrame(String title, Map<SqlProperties, Boolean> statusMap) {
super(title);
//Setlayout manager
setLayout(new BorderLayout());
//Add swing components to content pane
Container c = getContentPane();
c.add(resultView, BorderLayout.CENTER);
proccessesPanel = new ProccessesPanelTab();
c.add(proccessesPanel, BorderLayout.WEST);
}
public ResultView getTextArea() {
return resultView;
}
public ProccessesPanelTab getProccessesPanel() {
return proccessesPanel;
}
}