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