001: /*
002: * Created on 14/03/2006
003: *
004: * Swing Components - visit http://sf.net/projects/gfd
005: *
006: * Copyright (C) 2005 Igor Regis da Silva Simões
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU General Public License
010: * as published by the Free Software Foundation; either version 2
011: * of the License, or (at your option) any later version.
012: *
013: * This program is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016: * GNU General Public License for more details.
017: *
018: * You should have received a copy of the GNU General Public License
019: * along with this program; if not, write to the Free Software
020: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
021: *
022: */
023: package br.com.gfp.db.migration;
024:
025: import java.awt.Frame;
026: import java.awt.GridBagConstraints;
027: import java.awt.GridBagLayout;
028:
029: import javax.swing.JPanel;
030: import javax.swing.JScrollPane;
031: import javax.swing.JTextArea;
032:
033: import br.com.gfp.internationalization.DBWizard7Messages;
034:
035: /**
036: *
037: * @author Igor Regis da Silva Simoes
038: * @since 21/10/2005
039: */
040: public class MigrarDB14 extends MigradorDBWizard {
041:
042: /**
043: * @param owner
044: */
045: public MigrarDB14(Frame owner) {
046: super (owner);
047: }
048:
049: /*
050: * @see br.com.gfp.db.migration.MigradorDBWizard#migrar()
051: */
052: @Override
053: protected void migrar() {
054: setSize(450, 300);
055: setResizable(false);
056: setVisible(true);
057: }
058:
059: /*
060: * @see br.com.gfp.db.migration.MigradorDBWizard#adicionarPaineis()
061: */
062: @Override
063: protected void adicionarPaineis() {
064: JTextArea jtaTitulo = null;
065: JTextArea jtaIntro = null;
066:
067: JPanel painel = new JPanel();
068: painel.setLayout(new GridBagLayout());
069:
070: jtaTitulo = new JTextArea();
071: jtaTitulo.setText(DBWizard7Messages.getMessages().getString(
072: "changes"));
073: jtaTitulo.setFont(new java.awt.Font("Times New Roman",
074: java.awt.Font.BOLD | java.awt.Font.ITALIC, 18));
075: jtaTitulo.setEditable(false);
076: jtaTitulo.setOpaque(false);
077: GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
078: gridBagConstraints1.gridx = 0;
079: gridBagConstraints1.gridy = 0;
080: gridBagConstraints1.insets = new java.awt.Insets(10, 0, 20, 0);
081: gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH;
082: gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL;
083: painel.add(jtaTitulo, gridBagConstraints1);
084:
085: jtaIntro = new JTextArea();
086: jtaIntro.setText(DBWizard7Messages.getMessages().getString(
087: "changesDesc14"));
088: jtaIntro.setEditable(false);
089: jtaIntro.setLineWrap(true);
090: jtaIntro.setWrapStyleWord(true);
091: jtaIntro.setOpaque(false);
092: GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
093: gridBagConstraints2.gridx = 0;
094: gridBagConstraints2.gridy = 1;
095: gridBagConstraints2.weightx = 1;
096: gridBagConstraints2.weighty = 1;
097: gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST;
098: gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH;
099: painel.add(new JScrollPane(jtaIntro), gridBagConstraints2);
100:
101: addPage(painel);
102: }
103:
104: @Override
105: protected boolean precisaDeWizard() {
106: super .precisaDeWizard();
107: return true;
108: }
109:
110: /**
111: * Executa o passo da passagem da tela <code>passo</code> para a <code>passo + 1</code>
112: * @param passo Passo sendo executado
113: */
114: @Override
115: public void executeStep(int passo) {
116: //Não fazemos nada
117: }
118: }
|