title: Image added through JLabel as jpg format is not clear in java swing gui
body: <pre class="lang-java prettyprint-override"><code>package project;
  
  import javax.swing.*;
  
  class login {
      
      JFrame loginf;
      JLabel loginimg;
      
      public void start() {
          loginf = new JFrame();
          loginf.setSize(1280,720);
          loginf.setLayout(null);
          loginf.setUndecorated(true);
          loginf.setLocation(120,60);
  
          loginimg = new JLabel(new ImageIcon(&quot;E:\\well\\Login with image1.jpg&quot;));
          loginimg.setBounds(0,0,1280,720);
  
          loginf.add(loginimg);
          loginf.setVisible(true);    
      }
  }
  
  public class LoginPage {
  
      public static void main(String[] args) {
          login lp = new login();
          lp.start(); 
      }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/bgIu2.png" rel="nofollow noreferrer">Image is not clear i edited the image in photoshop and the same image has quite good when i open it from pictures </a></p>