diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.form b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.form index a6f1345c9..ab53c8171 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.form +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.form @@ -19,6 +19,7 @@ + @@ -63,7 +64,6 @@ - diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.java index 35a4712c5..1c2eee02e 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/ViewEmailDialog.java @@ -755,6 +755,9 @@ private void initComponents() { public void componentResized(java.awt.event.ComponentEvent evt) { formComponentResized(evt); } + public void componentShown(java.awt.event.ComponentEvent evt) { + formComponentShown(evt); + } }); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { @@ -762,7 +765,6 @@ public void windowClosing(java.awt.event.WindowEvent evt) { } }); - jToolBar1.setFloatable(false); jToolBar1.setRollover(true); cmdReply.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons32/mail_reply.png"))); // NOI18N @@ -1100,6 +1102,10 @@ private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:even } }//GEN-LAST:event_formWindowClosing + private void formComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentShown + FrameUtils.centerDialogOnParentMonitor(this, this.getOwner().getLocation()); + }//GEN-LAST:event_formComponentShown + /** * @param args the command line arguments */