Less wacky.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2711 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2010-02-09 20:11:43 +00:00
parent 9b602fd73e
commit 3a0f8e3fc2
@@ -564,9 +564,7 @@ public class SwingUtil
*/
public static void addDebugBorders (JPanel panel)
{
Color bcolor = new Color(Math.abs(_rando.nextInt()) % 256,
Math.abs(_rando.nextInt()) % 256,
Math.abs(_rando.nextInt()) % 256);
Color bcolor = new Color(_rando.nextInt(256), _rando.nextInt(256), _rando.nextInt(256));
panel.setBorder(BorderFactory.createLineBorder(bcolor));
for (int ii = 0; ii < panel.getComponentCount(); ii++) {