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