bibliothek.util.workarounds
Class Java6Workaround

java.lang.Object
  extended by bibliothek.util.workarounds.Java6Workaround
All Implemented Interfaces:
Workaround
Direct Known Subclasses:
Java7Workaround

public class Java6Workaround
extends Object
implements Workaround

Workarounds necessary for Java 1.6.

Author:
Benjamin Sigg

Constructor Summary
Java6Workaround()
           
 
Method Summary
static boolean isPrintWarnings()
          Tells whether all Java6Workarounds are allowed to print warnings.
 boolean makeTransparent(Window window)
          Makes the window window transparent.
 void markAsGlassPane(Component component)
          Called for any Component which is used as glass pane (as invisible panel).
static void setPrintWarnings(boolean printWarnings)
          Sets whether the methods of the Java6Workaround can print warnings or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java6Workaround

public Java6Workaround()
Method Detail

setPrintWarnings

public static void setPrintWarnings(boolean printWarnings)
Sets whether the methods of the Java6Workaround can print warnings or not. Calling this method affects all workarounds. The default behavior is not to print warnings.

Parameters:
printWarnings - whether to print warnings

isPrintWarnings

public static boolean isPrintWarnings()
Tells whether all Java6Workarounds are allowed to print warnings.

Returns:
whether to print warnings
See Also:
setPrintWarnings(boolean)

markAsGlassPane

public void markAsGlassPane(Component component)
Description copied from interface: Workaround
Called for any Component which is used as glass pane (as invisible panel).

Specified by:
markAsGlassPane in interface Workaround
Parameters:
component - the component that is invisible

makeTransparent

public boolean makeTransparent(Window window)
Description copied from interface: Workaround
Makes the window window transparent. See Workarounds.makeTransparent(Window) for a more detailed description.

Specified by:
makeTransparent in interface Workaround
Parameters:
window - the window that should be transparent
Returns:
whether the window is now transparent or not