xref: /AOO41X/main/javainstaller2/src/JavaSetup/org/openoffice/setup/Dialogs/DatabaseDialog.java (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 package org.openoffice.setup.Dialogs;
29 
30 import org.openoffice.setup.PanelHelper.PanelLabel;
31 import org.openoffice.setup.SetupFrame;
32 import java.awt.BorderLayout;
33 import java.awt.Container;
34 import java.awt.Insets;
35 import javax.swing.JDialog;
36 import javax.swing.JPanel;
37 import javax.swing.border.EmptyBorder;
38 import org.openoffice.setup.ResourceManager;
39 
40 public class DatabaseDialog extends JDialog {
41 
42     public DatabaseDialog(SetupFrame setupFrame) {
43 
44         // super(setupFrame.getDialog());
45 
46         String text1 = ResourceManager.getString("String_Analyzing_Database1");
47         String text2 = ResourceManager.getString("String_Analyzing_Database2");
48 
49         setTitle(text1);
50         this.getContentPane().setLayout(new java.awt.BorderLayout());
51 
52         JPanel toppanel = new JPanel();
53         toppanel.setLayout(new java.awt.BorderLayout());
54         toppanel.setBorder(new EmptyBorder(new Insets(50, 50, 50, 50)));
55 
56         PanelLabel label1 = new PanelLabel(text2);
57         toppanel.add(label1, BorderLayout.NORTH);
58 
59         Container contentPane = this.getContentPane();
60         contentPane.add(toppanel);
61         // this.getContentPane().add(toppanel, BorderLayout.CENTER);
62     }
63 
64 }
65