title: Java: Graphics 2d, will not draw fast enough
body: <p>I am looking for a rather simple(and by simple I mean nothing that requires tooo many lines of code) for the following problem:</p>
  
  <p>I have a paint app. The code for the app is here: <a href="https://github.com/Tigatok/JavaProjects/tree/master/Paint2.0" rel="nofollow noreferrer">https://github.com/Tigatok/JavaProjects/tree/master/Paint2.0</a></p>
  
  <p>Here is my problem:</p>
  
  <p><img src="https://i.stack.imgur.com/g7xQB.png" width="500"></p>
  
  <p>How do I get the square line to be as smooth as the pencilLine?</p>