title: Images doesn't work in eclipse
body: <p>I already did search on youtube and here and probably it is silly question but I couldn't find how to make it work.</p>
  
  <p>Question is when I add pictures in my eclipse file they look like;</p>
  
  <p><a href="https://i.stack.imgur.com/6PHv4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6PHv4.png" alt="enter image description here"></a></p>
  
  <pre><code>setLayout(new FlowLayout());
  
      image1 = new ImageIcon(getClass().getResource("view.jpg"));
      label1 = new JLabel(image1);
      add(label1);
  
      image2 = new ImageIcon(getClass().getResource("view1.jpg"));
      label1 = new JLabel(image2);
      add(label2);    // here my code
  </code></pre>
  
  <p>Any ideas?</p>