home *** CD-ROM | disk | FTP | other *** search
- package java.awt;
-
- import java.awt.peer.LightweightPeer;
-
- final class GraphicsCallback$PrintHeavyweightComponentsCallback extends GraphicsCallback {
- private static GraphicsCallback$PrintHeavyweightComponentsCallback instance = new GraphicsCallback$PrintHeavyweightComponentsCallback();
-
- private GraphicsCallback$PrintHeavyweightComponentsCallback() {
- }
-
- public void run(Component var1, Graphics var2) {
- if (var1.peer instanceof LightweightPeer) {
- var1.printHeavyweightComponents(var2);
- } else {
- var1.printAll(var2);
- }
-
- }
-
- static GraphicsCallback$PrintHeavyweightComponentsCallback getInstance() {
- return instance;
- }
- }
-