/[schmitzm]/trunk/src/skrueger/i8n/SwitchLanguageDialog.java
ViewVC logotype

Diff of /trunk/src/skrueger/i8n/SwitchLanguageDialog.java

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

branches/2.0-RC1/src/skrueger/i8n/SwitchLanguageDialog.java revision 607 by alfonx, Wed Dec 9 15:13:42 2009 UTC trunk/src/skrueger/i8n/SwitchLanguageDialog.java revision 1097 by alfonx, Sun Oct 10 21:14:05 2010 UTC
# Line 25  Line 25 
25   *   *
26   * Contributors:   * Contributors:
27   *     Martin O. J. Schmitz - initial API and implementation   *     Martin O. J. Schmitz - initial API and implementation
28   *     Stefan A. Krüger - additional utility classes   *     Stefan A. Tzeggai - additional utility classes
29   ******************************************************************************/   ******************************************************************************/
30  package skrueger.i8n;  package skrueger.i8n;
31    
# Line 62  import skrueger.swing.TranslationEditJPa Line 62  import skrueger.swing.TranslationEditJPa
62  public class SwitchLanguageDialog extends JDialog {  public class SwitchLanguageDialog extends JDialog {
63          protected Logger LOGGER = Logger.getLogger(SwitchLanguageDialog.class);          protected Logger LOGGER = Logger.getLogger(SwitchLanguageDialog.class);
64    
         private static final long serialVersionUID = 1L;  
   
65          private JPanel jContentPane = null;          private JPanel jContentPane = null;
66    
67          private JLabel jLabelFlagimage = null;          private JLabel jLabelFlagimage = null;
# Line 84  public class SwitchLanguageDialog extend Line 82  public class SwitchLanguageDialog extend
82           * A dialog to select one of the available languages. If only one language           * A dialog to select one of the available languages. If only one language
83           * is available, select it directly. Creating this object automatically           * is available, select it directly. Creating this object automatically
84           * makes it visible, unless there is only one language to choose from.. it           * makes it visible, unless there is only one language to choose from.. it
85           * that case it disposes itself autmatically.           * that case it disposes itself automatically.
86           */           */
87          public SwitchLanguageDialog(final Component owner,          public SwitchLanguageDialog(final Component owner,
88                          final List<String> languages) {                          final List<String> languages) {
# Line 96  public class SwitchLanguageDialog extend Line 94  public class SwitchLanguageDialog extend
94                  if (languages.size() == 1) {                  if (languages.size() == 1) {
95                          LOGGER.debug("Only language '" + languages.get(0)                          LOGGER.debug("Only language '" + languages.get(0)
96                                          + "' is available. It has been selected automatically.");                                          + "' is available. It has been selected automatically.");
97  //                      dispose();                          // dispose();
98                          setModal(false);                          setModal(false);
99                          return;                          return;
100                  }                  }

Legend:
Removed from v.607  
changed lines
  Added in v.1097

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26