Adds the specified window to the Window menu.
(Window win)
| 304 | |
| 305 | /** Adds the specified window to the Window menu. */ |
| 306 | public synchronized static void addWindow(Window win) { |
| 307 | if (win==null) |
| 308 | return; |
| 309 | else if (win instanceof ImageWindow) |
| 310 | addImageWindow((ImageWindow)win); |
| 311 | else { |
| 312 | Menus.insertWindowMenuItem(win); |
| 313 | nonImageList.add(win); |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | /** Adds the specified Frame to the Window menu. */ |
| 318 | public static void addWindow(Frame win) { |
no test coverage detected