/*************************************************************************** * $Id$ ** * Definition of something or other ** * Created : 979899 ** * Copyright (C) 1997 by Trolltech AS. All rights reserved. ** * This file is part of an example program for Qt. This example * program may be used, distributed and modified without limitation. ** ****************************************************************************/ import org.kde.qt.*; import java.util.Random; class Forever extends QWidget { static final int numColors = 120; private int rectangles; private QColor[] colors = new QColor[numColors]; private Random generator = new Random(System.currentTimeMillis()); // // Forever - a widget that draws rectangles forever. // // // Constructs a Forever widget. // Forever( ) { this(null, null); } Forever( QWidget parent, String name ) { super( parent, name ); for (int a=0; a