/*************************************************************************** * $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 TQWidget { static final int numColors = 120; private int rectangles; private TQColor[] colors = new TQColor[numColors]; private Random generator = new Random(System.currentTimeMillis()); // // Forever - a widget that draws rectangles forever. // // // Constructs a Forever widget. // Forever( ) { this(null, null); } Forever( TQWidget parent, String name ) { super( parent, name ); for (int a=0; a