1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 package org.openoffice.setup.Dialogs;
25 
26 import org.openoffice.setup.PanelHelper.PanelLabel;
27 import org.openoffice.setup.SetupFrame;
28 import java.awt.BorderLayout;
29 import java.awt.Container;
30 import java.awt.Insets;
31 import javax.swing.JDialog;
32 import javax.swing.JPanel;
33 import javax.swing.border.EmptyBorder;
34 import org.openoffice.setup.ResourceManager;
35 
36 public class DatabaseDialog extends JDialog {
37 
DatabaseDialog(SetupFrame setupFrame)38     public DatabaseDialog(SetupFrame setupFrame) {
39 
40         // super(setupFrame.getDialog());
41 
42         String text1 = ResourceManager.getString("String_Analyzing_Database1");
43         String text2 = ResourceManager.getString("String_Analyzing_Database2");
44 
45         setTitle(text1);
46         this.getContentPane().setLayout(new java.awt.BorderLayout());
47 
48         JPanel toppanel = new JPanel();
49         toppanel.setLayout(new java.awt.BorderLayout());
50         toppanel.setBorder(new EmptyBorder(new Insets(50, 50, 50, 50)));
51 
52         PanelLabel label1 = new PanelLabel(text2);
53         toppanel.add(label1, BorderLayout.NORTH);
54 
55         Container contentPane = this.getContentPane();
56         contentPane.add(toppanel);
57         // this.getContentPane().add(toppanel, BorderLayout.CENTER);
58     }
59 
60 }
61