001 /** 002 * Copyright (c) 2003 Daffodil Software Ltd all rights reserved, 003 * Modifications Copyright (c) 2008 Regiscope Digital Imaging Co, LLC, All rights reserved. 004 * This program is free software; you can redistribute it and/or modify 005 * it under the terms of version 2 of the GNU General Public License as 006 * published by the Free Software Foundation. 007 * There are special exceptions to the terms and conditions of the GPL 008 * as it is applied to this software. See the GNU General Public License for more details. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU General Public License for more details. 014 * 015 * You should have received a copy of the GNU General Public License 016 * along with this program; if not, write to the Free Software 017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 018 */ 019 020 package org.dbreplicator.repconsole; 021 022 import java.awt.*; 023 import java.awt.event.*; 024 import javax.swing.*; 025 import javax.swing.border.*; 026 027 public class StepsForm extends JDialog implements FocusListener 028 { 029 JPanel jPanel1 = new JPanel(); 030 JLabel step1 = new JLabel(); 031 JLabel step2 = new JLabel(); 032 JLabel step3 = new JLabel(); 033 JLabel step4 = new JLabel(); 034 JEditorPane description_pane = new JEditorPane(); 035 JLabel jLabel1 = new JLabel(); 036 JLabel jLabel2 = new JLabel(); 037 Border border1; 038 public static void main(String[] args) 039 { 040 StepsForm stepsForm1 = new StepsForm(); 041 } 042 043 public StepsForm() 044 { 045 try 046 { 047 jbInit(); 048 } 049 catch (Exception e) 050 { 051 JOptionPane.showMessageDialog(this, e, "Error Message", 052 JOptionPane.ERROR_MESSAGE); 053 return; 054 } 055 } 056 057 private void jbInit() throws Exception 058 { 059 border1 = BorderFactory.createLineBorder(SystemColor.controlText, 1); 060 this.getContentPane().setLayout(null); 061 jPanel1.setBounds(new Rectangle( -2, 0, 400, 300)); 062 jPanel1.setLayout(null); 063 step1.setFont(new java.awt.Font("Dialog", 0, 12)); 064 step1.setDoubleBuffered(false); 065 step1.setDisabledIcon(null); 066 step1.setHorizontalTextPosition(SwingConstants.TRAILING); 067 step1.setIcon(new ImageIcon(StepsForm.class.getResource("help.png"))); 068 step1.setIconTextGap(4); 069 step1.setText("1. Publication Name to be created / Set conflict resolver"); 070 step1.setBounds(new Rectangle(38, 44, 335, 29)); 071 step2.setBounds(new Rectangle(36, 76, 335, 29)); 072 step2.setText("2. Select tables from datasource to be published"); 073 step2.setFont(new java.awt.Font("Dialog", 0, 12)); 074 step2.setDoubleBuffered(false); 075 step2.setDisabledIcon(null); 076 step2.setHorizontalTextPosition(SwingConstants.TRAILING); 077 step2.setIcon(new ImageIcon(StepsForm.class.getResource("help.png"))); 078 step2.setIconTextGap(4); 079 step3.setBounds(new Rectangle(36, 105, 335, 29)); 080 step3.setText("3. Set Filter Clause for respective tables"); 081 step3.setFont(new java.awt.Font("Dialog", 0, 12)); 082 step3.setDoubleBuffered(false); 083 step3.setDisabledIcon(null); 084 step3.setHorizontalTextPosition(SwingConstants.TRAILING); 085 step3.setIcon(new ImageIcon(StepsForm.class.getResource("help.png"))); 086 step3.setIconTextGap(4); 087 step4.setBounds(new Rectangle(34, 135, 335, 29)); 088 step4.setText("4. Published"); 089 step4.setFont(new java.awt.Font("Dialog", 0, 12)); 090 step4.setAlignmentX( (float) 0.0); 091 step4.setDoubleBuffered(false); 092 step4.setDisabledIcon(null); 093 step4.setHorizontalTextPosition(SwingConstants.TRAILING); 094 step4.setIcon(new ImageIcon(StepsForm.class.getResource("help.png"))); 095 step4.setIconTextGap(4); 096 description_pane.setBackground(SystemColor.controlHighlight); 097 description_pane.setFont(new java.awt.Font("Dialog", 0, 12)); 098 description_pane.setEditable(false); 099 description_pane.setText("Description"); 100 description_pane.setBounds(new Rectangle(26, 206, 357, 79)); 101 jLabel1.setFont(new java.awt.Font("Serif", 3, 20)); 102 jLabel1.setForeground(SystemColor.infoText); 103 jLabel1.setHorizontalAlignment(SwingConstants.CENTER); 104 jLabel1.setIconTextGap(4); 105 jLabel1.setText("Steps"); 106 jLabel1.setBounds(new Rectangle(49, 6, 273, 20)); 107 jLabel2.setBorder(border1); 108 jLabel2.setText(""); 109 jLabel2.setBounds(new Rectangle(15, 38, 364, 137)); 110 this.getContentPane().add(jPanel1, null); 111 jPanel1.add(step2, null); 112 jPanel1.add(step1, null); 113 jPanel1.add(step4, null); 114 jPanel1.add(step3, null); 115 jPanel1.add(description_pane, null); 116 jPanel1.add(jLabel1, null); 117 jPanel1.add(jLabel2, null); 118 } 119 120 public void focusGained(FocusEvent focusEvent) 121 { 122 123 } 124 125 public void focusLost(FocusEvent focusEvent) 126 { 127 } 128 }

