update copyright
[fedora-idea.git] / plugins / ui-designer / testData / sourceCodeGenerator / multipleConstructors / BindingTest.java.after
blob46fd2a097bcc91ab37203c7e7a90370b9d325e9c
1 /*
2  * Copyright 2000-2009 JetBrains s.r.o.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 import javax.swing.*;
18 public class BindingTest {
19     public JComponent myRootComponent;
20     private JLabel myLabel;
22     public BindingTest() {
23         $$$setupUI$$$();
24     }
26     public BindingTest(int i) {
27         $$$setupUI$$$();
28         doTest();
29         myLabel.setText("My Text");
30     }
32     private void doTest() {
33     }
35     private void createUIComponents() {
36         myLabel = new JLabel();
37     }
39     /**
40      * Method generated by IntelliJ IDEA GUI Designer
41      * >>> IMPORTANT!! <<<
42      * DO NOT edit this method OR call it in your code!
43      *
44      * @noinspection ALL
45      */
46     private void $$$setupUI$$$() {
47         createUIComponents();
48         myRootComponent = new JPanel();
49         myRootComponent.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new java.awt.Insets(0, 0, 0, 0), -1, -1));
50         myRootComponent.add(myLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
51     }
53     /**
54      * @noinspection ALL
55      */
56     public JComponent $$$getRootComponent$$$() {
57         return myRootComponent;
58     }