Less wacky.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2711 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -564,9 +564,7 @@ public class SwingUtil
|
|||||||
*/
|
*/
|
||||||
public static void addDebugBorders (JPanel panel)
|
public static void addDebugBorders (JPanel panel)
|
||||||
{
|
{
|
||||||
Color bcolor = new Color(Math.abs(_rando.nextInt()) % 256,
|
Color bcolor = new Color(_rando.nextInt(256), _rando.nextInt(256), _rando.nextInt(256));
|
||||||
Math.abs(_rando.nextInt()) % 256,
|
|
||||||
Math.abs(_rando.nextInt()) % 256);
|
|
||||||
panel.setBorder(BorderFactory.createLineBorder(bcolor));
|
panel.setBorder(BorderFactory.createLineBorder(bcolor));
|
||||||
|
|
||||||
for (int ii = 0; ii < panel.getComponentCount(); ii++) {
|
for (int ii = 0; ii < panel.getComponentCount(); ii++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user