diff options
Diffstat (limited to 'src/cppcheckplus/tab/MyTabPage1.java')
-rw-r--r-- | src/cppcheckplus/tab/MyTabPage1.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cppcheckplus/tab/MyTabPage1.java b/src/cppcheckplus/tab/MyTabPage1.java new file mode 100644 index 0000000..e851b3a --- /dev/null +++ b/src/cppcheckplus/tab/MyTabPage1.java | |||
@@ -0,0 +1,30 @@ | |||
1 | package cppcheckplus.tab; | ||
2 | |||
3 | import java.awt.BorderLayout; | ||
4 | |||
5 | import javax.swing.JComponent; | ||
6 | import javax.swing.JPanel; | ||
7 | public class MyTabPage1 extends JPanel{ | ||
8 | private JPanel centerPane; | ||
9 | |||
10 | public MyTabPage1(){ | ||
11 | this(null); | ||
12 | } | ||
13 | |||
14 | public MyTabPage1(JComponent contentComponent){ | ||
15 | centerPane = new JPanel(new BorderLayout()); | ||
16 | init(contentComponent); | ||
17 | } | ||
18 | |||
19 | private void init(JComponent contentComponent){ | ||
20 | setLayout(new BorderLayout()); | ||
21 | add(centerPane, "Center"); | ||
22 | if (contentComponent != null) | ||
23 | centerPane.add(contentComponent, "Center"); | ||
24 | } | ||
25 | |||
26 | public JPanel getCenterPane(){ | ||
27 | return centerPane; | ||
28 | } | ||
29 | |||
30 | } | ||