title: Why does ResourceBundle in null (in application with FXML and JavaFX 2.0)
body: <p>I have an application written on JavaFX (with using of FXML). I'm trying to internatiolize my app. I was trying to do it like it is described in <a href="http://docs.oracle.com/cd/E17411_01/javafx/2.0/fxml_get_started/fxml_tutorial.htm#CHDFJDAE" rel="nofollow noreferrer">this tutorial</a>. </p>
  
  <p>I have a property file with text like this: <strong>submit=Войти</strong></p>
  
  <p>I have a button, described in FXML: </p>
  
  <pre><code>&lt;Button id="button1" fx:id="submit" layoutX="69.0" layoutY="200.0" onAction="#loginFired" prefHeight="45.0" prefWidth="97.0" text="\%submit" /&gt;
  </code></pre>
  
  <p>Property file and fxml file are in the same directory.</p>
  
  <p>But my button do not have a text, i expect it to have, it is written "%submit" on it, but not "Войти".
  Then i've tried to do something like in <a href="https://stackoverflow.com/questions/10143392/javafx-2-and-internationalization">this one tutorial</a>
  In my intialize method i have suh code:</p>
  
  <pre><code>@Override
  public void initialize(URL arg0, ResourceBundle resources) {
      if(resources == null)
          System.out.println("error");
  }
  </code></pre>
  
  <p>and it gives me an "error" message to the log.</p>
  
  <p>So, what am i doing wrong? </p>