FileDocCategorySizeDatePackage
Util.javaAPI DocApache Poi 3.0.11812Mon Jan 01 12:39:34 GMT 2007org.apache.poi.contrib.poibrowser

Util

public class Util extends Object

Contains various (well, just one at the moment) static utility methods.

author
Rainer Klute <klute@rainer-klute.de>
version
$Id: Util.java 489730 2006-12-22 19:18:16Z bayard $
since
2002-01-25

Fields Summary
Constructors Summary
Methods Summary
public static voidinvert(javax.swing.JComponent c)

Makes a Swing component inverted by swapping its foreground and background colors. Hint: Depending on your needs it might also be a good idea to call c.setOpaque(true).

        final Color invBackground = c.getForeground();
        final Color invForeground = c.getBackground();
        c.setBackground(invBackground);
        c.setForeground(invForeground);