OSDN Git Service

ADD: Support about tab, it described program name and version.
authorTakuya Ono <takuya-o@users.sourceforge.jp>
Thu, 16 Aug 2007 16:52:08 +0000 (16:52 +0000)
committerTakuya Ono <takuya-o@users.sourceforge.jp>
Thu, 16 Aug 2007 16:52:08 +0000 (16:52 +0000)
src/org/jent/checksmtp/ApplicationUI.form
src/org/jent/checksmtp/ApplicationUI.java
src/org/jent/checksmtp/Bundle.properties
src/org/jent/checksmtp/Bundle_ja_JP.properties

index 6259423..3e02273 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 
-<Form version="1.3" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
+<Form version="1.4" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
   <Properties>
     <Property name="defaultCloseOperation" type="int" value="0"/>
     <Property name="title" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
@@ -41,7 +41,7 @@
     <DimensionLayout dim="1">
       <Group type="103" groupAlignment="0" attributes="0">
           <Group type="102" alignment="0" attributes="0">
-              <Component id="jTabbedPane" max="32767" attributes="0"/>
+              <Component id="jTabbedPane" pref="141" max="32767" attributes="0"/>
               <EmptySpace max="-2" attributes="0"/>
               <Group type="103" groupAlignment="3" attributes="0">
                   <Component id="jButtonCancel" alignment="3" min="-2" max="-2" attributes="0"/>
                           <Component id="jTextFieldServerHost" alignment="3" min="-2" max="-2" attributes="0"/>
                           <Component id="jTextFieldServerPort" alignment="3" min="-2" max="-2" attributes="0"/>
                       </Group>
-                      <EmptySpace pref="74" max="32767" attributes="0"/>
+                      <EmptySpace pref="58" max="32767" attributes="0"/>
                   </Group>
               </Group>
             </DimensionLayout>
                           <Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
                           <Component id="jTextFieldAttribute" alignment="3" min="-2" max="-2" attributes="0"/>
                       </Group>
-                      <EmptySpace pref="28" max="32767" attributes="0"/>
+                      <EmptySpace max="32767" attributes="0"/>
                   </Group>
               </Group>
             </DimensionLayout>
             </Component>
           </SubComponents>
         </Container>
+        <Container class="javax.swing.JPanel" name="jPanelAbout">
+          <Constraints>
+            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
+              <JTabbedPaneConstraints tabName="About">
+                <Property name="tabTitle" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString bundle="org/jent/checksmtp/Bundle.properties" key="ApplicationUI.jPanelAbout.TabConstraints.tabTitle" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+                </Property>
+              </JTabbedPaneConstraints>
+            </Constraint>
+          </Constraints>
+
+          <Layout>
+            <DimensionLayout dim="0">
+              <Group type="103" groupAlignment="0" attributes="0">
+                  <Group type="102" attributes="0">
+                      <Group type="103" groupAlignment="0" attributes="0">
+                          <Group type="102" alignment="0" attributes="0">
+                              <EmptySpace max="-2" attributes="0"/>
+                              <Component id="jLabelProgramName" min="-2" max="-2" attributes="0"/>
+                              <EmptySpace max="-2" attributes="0"/>
+                              <Component id="jLabelProgramVersion" min="-2" max="-2" attributes="0"/>
+                          </Group>
+                          <Group type="102" alignment="0" attributes="0">
+                              <EmptySpace min="-2" pref="55" max="-2" attributes="0"/>
+                              <Component id="jLabelSfURL" min="-2" max="-2" attributes="0"/>
+                          </Group>
+                      </Group>
+                      <EmptySpace pref="35" max="32767" attributes="0"/>
+                  </Group>
+              </Group>
+            </DimensionLayout>
+            <DimensionLayout dim="1">
+              <Group type="103" groupAlignment="0" attributes="0">
+                  <Group type="102" alignment="0" attributes="0">
+                      <EmptySpace max="-2" attributes="0"/>
+                      <Group type="103" groupAlignment="3" attributes="0">
+                          <Component id="jLabelProgramName" alignment="3" min="-2" max="-2" attributes="0"/>
+                          <Component id="jLabelProgramVersion" alignment="3" min="-2" pref="22" max="-2" attributes="0"/>
+                      </Group>
+                      <EmptySpace max="-2" attributes="0"/>
+                      <Component id="jLabelSfURL" min="-2" max="-2" attributes="0"/>
+                      <EmptySpace pref="57" max="32767" attributes="0"/>
+                  </Group>
+              </Group>
+            </DimensionLayout>
+          </Layout>
+          <SubComponents>
+            <Component class="javax.swing.JLabel" name="jLabelProgramName">
+              <Properties>
+                <Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
+                  <FontInfo relative="false">
+                    <Font name="Dialog" size="18" style="1"/>
+                  </FontInfo>
+                </Property>
+                <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString bundle="org/jent/checksmtp/Bundle.properties" key="ApplicationUI.jLabelProgramName.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+                </Property>
+              </Properties>
+            </Component>
+            <Component class="javax.swing.JLabel" name="jLabelProgramVersion">
+              <Properties>
+                <Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
+                  <FontInfo relative="false">
+                    <Font name="Dialog" size="18" style="1"/>
+                  </FontInfo>
+                </Property>
+                <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString bundle="org/jent/checksmtp/Bundle.properties" key="ApplicationUI.jLabelProgramVersion.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+                </Property>
+              </Properties>
+            </Component>
+            <Component class="javax.swing.JLabel" name="jLabelSfURL">
+              <Properties>
+                <Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
+                  <FontInfo relative="false">
+                    <Font name="Dialog" size="14" style="1"/>
+                  </FontInfo>
+                </Property>
+                <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString bundle="org/jent/checksmtp/Bundle.properties" key="ApplicationUI.jLabelSfURL.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+                </Property>
+              </Properties>
+            </Component>
+          </SubComponents>
+        </Container>
       </SubComponents>
     </Container>
     <Component class="javax.swing.JButton" name="jButtonOK">
index 5540c71..265ff2c 100644 (file)
@@ -104,6 +104,10 @@ public class ApplicationUI extends javax.swing.JFrame {
     jTextFieldBaseDn = new javax.swing.JTextField();
     jTextFieldAttribute = new javax.swing.JTextField();
     jCheckBoxIsSjis = new javax.swing.JCheckBox();
+    jPanelAbout = new javax.swing.JPanel();
+    jLabelProgramName = new javax.swing.JLabel();
+    jLabelProgramVersion = new javax.swing.JLabel();
+    jLabelSfURL = new javax.swing.JLabel();
     jButtonOK = new javax.swing.JButton();
     jButtonCancel = new javax.swing.JButton();
     jButtonQuit = new javax.swing.JButton();
@@ -182,7 +186,7 @@ public class ApplicationUI extends javax.swing.JFrame {
           .add(jLabel3)
           .add(jTextFieldServerHost, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
           .add(jTextFieldServerPort, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-        .addContainerGap(74, Short.MAX_VALUE))
+        .addContainerGap(58, Short.MAX_VALUE))
     );
     jTabbedPane.addTab(bundle.getString("ApplicationUI.jPanelMail.TabConstraints.tabTitle"), jPanelMail); // NOI18N
 
@@ -266,10 +270,48 @@ public class ApplicationUI extends javax.swing.JFrame {
         .add(jPanelLDAPLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
           .add(jLabel6)
           .add(jTextFieldAttribute, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-        .addContainerGap(28, Short.MAX_VALUE))
+        .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
     );
     jTabbedPane.addTab(bundle.getString("ApplicationUI.jPanelLDAP.TabConstraints.tabTitle"), jPanelLDAP); // NOI18N
 
+    jLabelProgramName.setFont(new java.awt.Font("Dialog", 1, 18));
+    jLabelProgramName.setText(bundle.getString("ApplicationUI.jLabelProgramName.text")); // NOI18N
+
+    jLabelProgramVersion.setFont(new java.awt.Font("Dialog", 1, 18));
+    jLabelProgramVersion.setText(bundle.getString("ApplicationUI.jLabelProgramVersion.text")); // NOI18N
+
+    jLabelSfURL.setFont(new java.awt.Font("Dialog", 1, 14));
+    jLabelSfURL.setText(bundle.getString("ApplicationUI.jLabelSfURL.text")); // NOI18N
+
+    org.jdesktop.layout.GroupLayout jPanelAboutLayout = new org.jdesktop.layout.GroupLayout(jPanelAbout);
+    jPanelAbout.setLayout(jPanelAboutLayout);
+    jPanelAboutLayout.setHorizontalGroup(
+      jPanelAboutLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+      .add(jPanelAboutLayout.createSequentialGroup()
+        .add(jPanelAboutLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+          .add(jPanelAboutLayout.createSequentialGroup()
+            .addContainerGap()
+            .add(jLabelProgramName)
+            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+            .add(jLabelProgramVersion))
+          .add(jPanelAboutLayout.createSequentialGroup()
+            .add(55, 55, 55)
+            .add(jLabelSfURL)))
+        .addContainerGap(35, Short.MAX_VALUE))
+    );
+    jPanelAboutLayout.setVerticalGroup(
+      jPanelAboutLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+      .add(jPanelAboutLayout.createSequentialGroup()
+        .addContainerGap()
+        .add(jPanelAboutLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
+          .add(jLabelProgramName)
+          .add(jLabelProgramVersion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+        .add(jLabelSfURL)
+        .addContainerGap(57, Short.MAX_VALUE))
+    );
+    jTabbedPane.addTab(bundle.getString("ApplicationUI.jPanelAbout.TabConstraints.tabTitle"), jPanelAbout); // NOI18N
+
     jButtonOK.setText(bundle.getString("ApplicationUI.jButtonOK.text")); // NOI18N
     jButtonOK.setToolTipText(bundle.getString("ApplicationUI.jButtonOK.toolTipText")); // NOI18N
     jButtonOK.addActionListener(new java.awt.event.ActionListener() {
@@ -314,7 +356,7 @@ public class ApplicationUI extends javax.swing.JFrame {
     layout.setVerticalGroup(
       layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
       .add(layout.createSequentialGroup()
-        .add(jTabbedPane)
+        .add(jTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)
         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
           .add(jButtonCancel)
@@ -581,6 +623,10 @@ public class ApplicationUI extends javax.swing.JFrame {
   private javax.swing.JLabel jLabel4;
   private javax.swing.JLabel jLabel5;
   private javax.swing.JLabel jLabel6;
+  private javax.swing.JLabel jLabelProgramName;
+  private javax.swing.JLabel jLabelProgramVersion;
+  private javax.swing.JLabel jLabelSfURL;
+  private javax.swing.JPanel jPanelAbout;
   private javax.swing.JPanel jPanelLDAP;
   private javax.swing.JPanel jPanelMail;
   private javax.swing.JTabbedPane jTabbedPane;
index 0add4e9..204fbb0 100644 (file)
@@ -88,3 +88,11 @@ ApplicationUI.jButtonQuit.toolTipText=Stop mdc program.
 ApplicationUI.jButtonOK.toolTipText=\r
 \r
 ApplicationUI.jButtonCancel.toolTipText=\r
+\r
+ApplicationUI.jLabelProgramName.text=Mail Distination Confirm Program\r
+\r
+ApplicationUI.jLabelProgramVersion.text=0.4\r
+\r
+ApplicationUI.jPanelAbout.TabConstraints.tabTitle=About\r
+\r
+ApplicationUI.jLabelSfURL.text=http\://mdc.sourceforge.jp/\r
index 5900b9b..ac43bab 100644 (file)
@@ -82,3 +82,7 @@ ApplicationUI.jButtonQuit.toolTipText=\u30D7\u30ED\u30B0\u30E9\u30E0\u3092\u7D42
 ApplicationUI.jButtonOK.toolTipText=\u8A2D\u5B9A\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\r
 \r
 ApplicationUI.jButtonCancel.toolTipText=\u4ECA\u56DE\u306E\u8A2D\u5B9A\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002\r
+\r
+ApplicationUI.jLabelProgramName.text=\u30E1\u30FC\u30EB\u9001\u4FE1\u5148\u78BA\u8A8D\u30D7\u30ED\u30B0\u30E9\u30E0\r
+\r
+ApplicationUI.jPanelAbout.TabConstraints.tabTitle=\u60C5\u5831\r