Below code is removing the title bar of JInternal Frame but when I execute the program it only displays JFrame to display JInternalFrame I have to manually minimize the the JFrame and again need to maximize JFrame to view JInternalFrame
    for (int k = 0; k < num; k++) 
    {
        jif[k] = new JInternalFrame();
        ((BasicInternalFrameUI) jif[k].getUI()).setNorthPane(null);
        jif[k].setBounds(Integer.parseInt(xCordinate[k]),   
        Integer.parseInt(yCordinate[k]), Integer.parseInt(width[k]), 
        Integer.parseInt(height[k]));
        jif[k].setBorder(null);
        frame.add(jif[k]);
        jif[k].setVisible(true);
  }
 frame.setVisible(true);