I assume it is showing only the last color because that is when the repaint is finally processed. If so, you need to ensure a repaint happens at each color transition. You could try calling paintImmediately() after a color change. Alternatively, you can use wait/notify to wait after the change until the repaint has happened. In this case you must be changing the colors from a thread other than the event thread.
On Thursday, May 2, 2002, at 02:56 PM, Ted Shab wrote: > Hi, > > I want to flash the color of a tab on a JTabbedPane when someone does a > certain operation. In other words, a specific tab will blink to > give a user > some feedback. > > I've tried cycling through different background colors on the tab, > but it > only shows the last color. > > Any ideas on the best way to do this? > > Best, > > Ted > > _______________________________________________ > Advanced-swing mailing list > [EMAIL PROTECTED] > http://eos.dk/mailman/listinfo/advanced-swing > > -- Bill Tschumy Otherwise -- Austin, TX [EMAIL PROTECTED] _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
