title: set width of characters with java
body: <p>I was working on something and was wondering if there is any way to set width of a character. </p>
  
  <p>For instance, lets say you enter character "i". I want to set the width of "i" to something (could be 1, 3, 6, etc inches or even pixels if that works). Once i is set, other letters will be get set (so A can be width of i times 3, C can be width of i times 2, etc etc). User only needs to input the width of i; all other characters will set themselves based on the width of i.</p>
  
  <p>Pseudocode of what I want:</p>
  
  <ul>
  <li>Ask user for width of i</li>
  <li>User inputs 2 inches</li>
  <li>Width of i equates to 2</li>
  <li>A gets set to 6in, C gets set to 4in, etc etc --- this will be preset within the code</li>
  <li>User inputs a message</li>
  <li>Width of message is calculated</li>
  <li>Program outputs total calculated width of message</li>
  </ul>
  
  <p>Is this possible? I have been trying to implement charsWidth. I would let user enter a message, message goes into an array, charsWidth would measure the array width, then finally output the width. The logic makes sense, but I am having rough time setting it up this way. Maybe there is a simpler way to implement this? This could be GUI-based, but I'm not familiar with GUI code so if it's text-based, it would be easier.</p>
  
  <p>Any suggestions? Thanks!</p>