01: package net.sourceforge.squirrel_sql.plugins.userscript.kernel;
02:
03: import net.sourceforge.squirrel_sql.fw.util.StringManager;
04: import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
05:
06: import javax.swing.*;
07: import java.awt.*;
08:
09: public class GenerateTemplateDialog extends JDialog {
10: private static final StringManager s_stringMgr = StringManagerFactory
11: .getStringManager(GenerateTemplateDialog.class);
12:
13: JTextArea txtCodeTemplate;
14: JButton btnSave;
15:
16: GenerateTemplateDialog(JFrame owner) {
17: // i18n[userscript.codeTemplate=Script code template]
18: super (owner, s_stringMgr.getString("userscript.codeTemplate"),
19: false);
20:
21: getContentPane().setLayout(new BorderLayout());
22: txtCodeTemplate = new JTextArea();
23: txtCodeTemplate.setTabSize(3);
24: getContentPane().add(new JScrollPane(txtCodeTemplate),
25: BorderLayout.CENTER);
26: // i18n[userscript.codeTemplateSave=Save]
27: btnSave = new JButton(s_stringMgr
28: .getString("userscript.codeTemplateSave"));
29: getContentPane().add(btnSave, BorderLayout.SOUTH);
30:
31: setSize(400, 400);
32: }
33: }
|