title: How to use a Glade UI (.glade file) in a Java Gnome/GTK program?
body: <p>I've did a research on the Internet looking for tutorials/documentations to explain me how to use a UI designed in Glade in a Java Gnome project, but no luck. I already know how to create a UI from the code using the Java Gnome/GTK. Anyway, I'd like to use a Glade UI that I've created in a Java Gnome/Gtk project, but I have no idea from where to start. Please tell me:</p>
  
  <ul>
  <li><p>which packages I need to install;</p></li>
  <li><p>how to integrate the UI I've create with Glade (the .glade file) with my Java Gnome/Gtk project (specifically in Eclipse);</p></li>
  <li><p>and give an example.</p></li>
  </ul>
  
  <p>Thanks in advance.</p>
  
  <p>That's how my Glade UI looks (Just click the image to see it bigger):</p>
  
  <p><a href="https://i.stack.imgur.com/cgX9C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cgX9C.png" alt="enter image description here"></a></p>
  
  <p>This is the XML code of the UI above:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;interface&gt;
    &lt;!-- interface-requires gtk+ 3.0 --&gt;
    &lt;object class="GtkWindow" id="window1"&gt;
      &lt;property name="can_focus"&gt;False&lt;/property&gt;
      &lt;property name="window_position"&gt;center&lt;/property&gt;
      &lt;child&gt;
        &lt;object class="GtkFixed" id="fixed1"&gt;
          &lt;property name="visible"&gt;True&lt;/property&gt;
          &lt;property name="can_focus"&gt;False&lt;/property&gt;
          &lt;child&gt;
            &lt;object class="GtkEntry" id="entry1"&gt;
              &lt;property name="width_request"&gt;162&lt;/property&gt;
              &lt;property name="height_request"&gt;25&lt;/property&gt;
              &lt;property name="visible"&gt;True&lt;/property&gt;
              &lt;property name="can_focus"&gt;True&lt;/property&gt;
              &lt;property name="halign"&gt;start&lt;/property&gt;
              &lt;property name="valign"&gt;end&lt;/property&gt;
              &lt;property name="invisible_char"&gt;•&lt;/property&gt;
            &lt;/object&gt;
            &lt;packing&gt;
              &lt;property name="x"&gt;11&lt;/property&gt;
              &lt;property name="y"&gt;49&lt;/property&gt;
            &lt;/packing&gt;
          &lt;/child&gt;
          &lt;child&gt;
            &lt;object class="GtkEntry" id="entry2"&gt;
              &lt;property name="width_request"&gt;162&lt;/property&gt;
              &lt;property name="height_request"&gt;25&lt;/property&gt;
              &lt;property name="visible"&gt;True&lt;/property&gt;
              &lt;property name="can_focus"&gt;True&lt;/property&gt;
              &lt;property name="halign"&gt;start&lt;/property&gt;
              &lt;property name="valign"&gt;end&lt;/property&gt;
              &lt;property name="invisible_char"&gt;•&lt;/property&gt;
              &lt;property name="invisible_char_set"&gt;True&lt;/property&gt;
            &lt;/object&gt;
            &lt;packing&gt;
              &lt;property name="x"&gt;271&lt;/property&gt;
              &lt;property name="y"&gt;49&lt;/property&gt;
            &lt;/packing&gt;
          &lt;/child&gt;
          &lt;child&gt;
            &lt;object class="GtkLabel" id="label"&gt;
              &lt;property name="height_request"&gt;25&lt;/property&gt;
              &lt;property name="visible"&gt;True&lt;/property&gt;
              &lt;property name="can_focus"&gt;False&lt;/property&gt;
              &lt;property name="label" translatable="yes"&gt;*&lt;/property&gt;
            &lt;/object&gt;
            &lt;packing&gt;
              &lt;property name="x"&gt;216&lt;/property&gt;
              &lt;property name="y"&gt;49&lt;/property&gt;
            &lt;/packing&gt;
          &lt;/child&gt;
          &lt;child&gt;
            &lt;object class="GtkButton" id="button"&gt;
              &lt;property name="label" translatable="yes"&gt;Calculate!!!&lt;/property&gt;
              &lt;property name="use_action_appearance"&gt;False&lt;/property&gt;
              &lt;property name="width_request"&gt;84&lt;/property&gt;
              &lt;property name="height_request"&gt;27&lt;/property&gt;
              &lt;property name="visible"&gt;True&lt;/property&gt;
              &lt;property name="can_focus"&gt;True&lt;/property&gt;
              &lt;property name="receives_default"&gt;True&lt;/property&gt;
              &lt;property name="use_action_appearance"&gt;False&lt;/property&gt;
            &lt;/object&gt;
            &lt;packing&gt;
              &lt;property name="x"&gt;181&lt;/property&gt;
              &lt;property name="y"&gt;93&lt;/property&gt;
            &lt;/packing&gt;
          &lt;/child&gt;
        &lt;/object&gt;
      &lt;/child&gt;
    &lt;/object&gt;
  &lt;/interface&gt;
  </code></pre>