KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > log4j > lf5 > viewer > LogFactor5LoadingDialog


1 /*
2  * Copyright 1999-2005 The Apache Software Foundation.
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 package org.apache.log4j.lf5.viewer;
17
18 import javax.swing.*;
19 import java.awt.*;
20
21 /**
22  * LogFactor5LoadingDialog
23  *
24  * @author Richard Hurst
25  * @author Brad Marlborough
26  */

27
28 // Contributed by ThoughtWorks Inc.
29

30 public class LogFactor5LoadingDialog extends LogFactor5Dialog {
31   //--------------------------------------------------------------------------
32
// Constants:
33
//--------------------------------------------------------------------------
34

35   //--------------------------------------------------------------------------
36
// Protected Variables:
37
//--------------------------------------------------------------------------
38

39   //--------------------------------------------------------------------------
40
// Private Variables:
41
//--------------------------------------------------------------------------
42

43   //--------------------------------------------------------------------------
44
// Constructors:
45
//--------------------------------------------------------------------------
46

47   public LogFactor5LoadingDialog(JFrame jframe, String JavaDoc message) {
48     super(jframe, "LogFactor5", false);
49
50     JPanel bottom = new JPanel();
51     bottom.setLayout(new FlowLayout());
52
53     JPanel main = new JPanel();
54     main.setLayout(new GridBagLayout());
55     wrapStringOnPanel(message, main);
56
57     getContentPane().add(main, BorderLayout.CENTER);
58     getContentPane().add(bottom, BorderLayout.SOUTH);
59     show();
60
61   }
62   //--------------------------------------------------------------------------
63
// Public Methods:
64
//--------------------------------------------------------------------------
65

66   //--------------------------------------------------------------------------
67
// Protected Methods:
68
//--------------------------------------------------------------------------
69

70   //--------------------------------------------------------------------------
71
// Private Methods:
72
//--------------------------------------------------------------------------
73

74   //--------------------------------------------------------------------------
75
// Nested Top-Level Classes or Interfaces
76
//--------------------------------------------------------------------------
77
}
Popular Tags