title: Java Color(int rgba) constructor and int overflow
body: <p>According to the <a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Color.html#Color%28int,%20boolean%29" rel="nofollow">docs</a>, this constructor exists:</p>
  
  <pre><code>public Color(int rgba,
           boolean hasalpha)
  </code></pre>
  
  <p>I'm failing to see how you could use this to create the equivalent of <code>Color(255,255,255,255)</code> (e.g. <code>0xFFFFFFFF</code>) given that java has no unsigned ints, however. </p>
  
  <p>How do you use this constructor for a "big" color?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Evidently the constructor can be used (surprise), but parsing an RGBa color string like this fails:</p>
  
  <pre><code>    int x = Integer.parseInt("0xFFFFFFFF", 16); // Number format error
      Color c = new Color(x, true);
  </code></pre>
  
  <p>The solution seems to be to use BigInteger to do the parsing. Sorry for the misdirected question!</p>