java/abc-drupal-gui/src/cz/frantovo/abcDrupal/gui/HlavniOkno.java
changeset 3 d40099dbbdd1
parent 2 2f02db6cd698
child 4 5816c7f61a2a
     1.1 --- a/java/abc-drupal-gui/src/cz/frantovo/abcDrupal/gui/HlavniOkno.java	Thu Dec 31 18:12:03 2009 +0100
     1.2 +++ b/java/abc-drupal-gui/src/cz/frantovo/abcDrupal/gui/HlavniOkno.java	Thu Dec 31 18:41:04 2009 +0100
     1.3 @@ -8,6 +8,7 @@
     1.4  import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel;
     1.5  import cz.frantovo.abcDrupal.Konvertor;
     1.6  import cz.frantovo.abcDrupal.PosluchacLogu;
     1.7 +import cz.frantovo.abcDrupal.PromenneProstredi;
     1.8  import java.util.logging.Level;
     1.9  import java.util.logging.Logger;
    1.10  import javax.swing.UIManager;
    1.11 @@ -24,6 +25,18 @@
    1.12      /** Creates new form HlavniOkno */
    1.13      public HlavniOkno() {
    1.14  	initComponents();
    1.15 +	nactiPromenneProstredi();
    1.16 +    }
    1.17 +
    1.18 +    private void nactiPromenneProstredi() {
    1.19 +	String zdroj = System.getenv(PromenneProstredi.MIGRACE_ZDROJ.toString());
    1.20 +	if (zdroj != null) {
    1.21 +	    jdbcZdroj.setText(zdroj);
    1.22 +	}
    1.23 +	String cil = System.getenv(PromenneProstredi.MIGRACE_CIL.toString());
    1.24 +	if (cil != null) {
    1.25 +	    jdbcCil.setText(cil);
    1.26 +	}
    1.27      }
    1.28  
    1.29      /** This method is called from within the constructor to