JDesktopPane toUse = getDesktopPaneForComponent(parentComponent);
JLayeredPane toUse = getDesktopPaneForComponent(parentComponent);
  public JInternalFrame createInternalFrame(Component parentComponent,                                            String title)                                     throws RuntimeException    {    JDesktopPane toUse = getDesktopPaneForComponent(parentComponent);    if (toUse == null)      throw new RuntimeException("parentComponent does not have a valid parent");    JInternalFrame frame = new JInternalFrame(title);    inputValue = UNINITIALIZED_VALUE;    value = UNINITIALIZED_VALUE;    frame.setClosable(true);    toUse.add(frame);    // FIXME: JLayeredPane broken? See bug # 16576    // frame.setLayer(JLayeredPane.MODAL_LAYER);    return frame;    }