47 private static final KeyboardFocusManagerPeer kfmPeer = new KeyboardFocusManagerPeer() { 48 public void setCurrentFocusedWindow(Window win) {} 49 public Window getCurrentFocusedWindow() { return null; } 50 public void setCurrentFocusOwner(Component comp) {} 51 public Component getCurrentFocusOwner() { return null; } 52 public void clearGlobalFocusOwner(Window activeWindow) {} 53 }; 54 55 public HToolkit() { 56 } 57 58 /* 59 * Component peer objects - unsupported. 60 */ 61 62 public WindowPeer createWindow(Window target) 63 throws HeadlessException { 64 throw new HeadlessException(); 65 } 66 67 public FramePeer createFrame(Frame target) 68 throws HeadlessException { 69 throw new HeadlessException(); 70 } 71 72 public DialogPeer createDialog(Dialog target) 73 throws HeadlessException { 74 throw new HeadlessException(); 75 } 76 77 public ButtonPeer createButton(Button target) 78 throws HeadlessException { 79 throw new HeadlessException(); 80 } 81 82 public TextFieldPeer createTextField(TextField target) 83 throws HeadlessException { 84 throw new HeadlessException(); 85 } 86 | 47 private static final KeyboardFocusManagerPeer kfmPeer = new KeyboardFocusManagerPeer() { 48 public void setCurrentFocusedWindow(Window win) {} 49 public Window getCurrentFocusedWindow() { return null; } 50 public void setCurrentFocusOwner(Component comp) {} 51 public Component getCurrentFocusOwner() { return null; } 52 public void clearGlobalFocusOwner(Window activeWindow) {} 53 }; 54 55 public HToolkit() { 56 } 57 58 /* 59 * Component peer objects - unsupported. 60 */ 61 62 public WindowPeer createWindow(Window target) 63 throws HeadlessException { 64 throw new HeadlessException(); 65 } 66 67 public FramePeer createLightweightFrame(LightweightFrame target) 68 throws HeadlessException { 69 throw new HeadlessException(); 70 } 71 72 public FramePeer createFrame(Frame target) 73 throws HeadlessException { 74 throw new HeadlessException(); 75 } 76 77 public DialogPeer createDialog(Dialog target) 78 throws HeadlessException { 79 throw new HeadlessException(); 80 } 81 82 public ButtonPeer createButton(Button target) 83 throws HeadlessException { 84 throw new HeadlessException(); 85 } 86 87 public TextFieldPeer createTextField(TextField target) 88 throws HeadlessException { 89 throw new HeadlessException(); 90 } 91 |