Obsolete; replaced by getWindow().
(String title)
| 549 | |
| 550 | /** Obsolete; replaced by getWindow(). */ |
| 551 | public static Frame getFrame(String title) { |
| 552 | for (int i=0; i<nonImageList.size(); i++) { |
| 553 | Object win = nonImageList.get(i); |
| 554 | String winTitle = win instanceof Frame?((Frame)win).getTitle():null; |
| 555 | if (title.equals(winTitle)) |
| 556 | return (Frame)win; |
| 557 | } |
| 558 | Frame frame = getImageWindow(title); |
| 559 | if (frame==null) { |
| 560 | Window win = getWindow(title); |
| 561 | if (win!=null) |
| 562 | frame = new Frame("Proxy"); |
| 563 | } |
| 564 | return frame; |
| 565 | } |
| 566 | |
| 567 | private static Frame getImageWindow(String title) { |
| 568 | int[] wList = getIDList(); |
no test coverage detected