/[schmitzm]/trunk/src/skrueger/swing/TranslationAskJDialog.java
ViewVC logotype

Diff of /trunk/src/skrueger/swing/TranslationAskJDialog.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 121 by alfonx, Sat May 16 21:25:44 2009 UTC revision 122 by alfonx, Tue May 19 17:16:13 2009 UTC
# Line 13  import java.util.Locale; Line 13  import java.util.Locale;
13    
14  import javax.swing.AbstractAction;  import javax.swing.AbstractAction;
15  import javax.swing.Action;  import javax.swing.Action;
16    import javax.swing.BorderFactory;
17  import javax.swing.Box;  import javax.swing.Box;
18  import javax.swing.JButton;  import javax.swing.JButton;
19  import javax.swing.JComponent;  import javax.swing.JComponent;
# Line 155  public class TranslationAskJDialog exten Line 156  public class TranslationAskJDialog exten
156                  SwingUtil.centerFrameOnScreen(this);                  SwingUtil.centerFrameOnScreen(this);
157                  Box box = Box.createVerticalBox();                  Box box = Box.createVerticalBox();
158                  for (JComponent panel : translationEditJPanelsOrJustComponents) {                  for (JComponent panel : translationEditJPanelsOrJustComponents) {
159                            panel.setAlignmentX(java.awt.Component.LEFT_ALIGNMENT);
160                            panel.setBorder( BorderFactory.createEmptyBorder(5, 6, 5, 6));
161                          box.add(panel);                          box.add(panel);
162                            
163                  }                  }
164                  JPanel cp = new JPanel(new BorderLayout());                  JPanel cp = new JPanel(new BorderLayout());
165                  cp.add(box, BorderLayout.CENTER);                  cp.add(box, BorderLayout.WEST);
166                  cp.add(getButtons(), BorderLayout.SOUTH);                  cp.add(getButtons(), BorderLayout.SOUTH);
167                  setContentPane(cp);                  setContentPane(cp);
168                    
169                  setTitle(RESOURCE.getString("translation_dialog_title")); // i8n                  setTitle(RESOURCE.getString("translation_dialog_title")); // i8n
170                  setModal(true);                  setModal(true);
171                  pack();                  pack();

Legend:
Removed from v.121  
changed lines
  Added in v.122

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26