useradd
more /root/Bugs/Windows Open Out of View.thread
Often when opening a window part of it is out of the view and the scroll bar doesn't appear until you move the window.
That can be solved by component.updateUI()
Actually no it can't. Like most panes, adding components to them does not cause them to attempt to resize, nor does updating the UI. Instead, only informing the pane to pack or resize will solve this. MDIPane provides a built in method to calculate its new size, however this has a large amount of overhead which would not be necessary here, and the slowdown is very noticeable. A lower level solution would be needed.
It's not fixable. I've tried it all. (has to create/alter some methods)
LGM.mdi.addNotify();
LGM.mdi.repaint();
LGM.mdi.resizeDesktop();
LGM.mdi.updateUI();
LGM.mdi.getMDIManager().endDraggingFrame(frame);
LGM.mdi.setSize(1000,1000);
LGM.mdi.getScrollPane().updateUI();
LGM.mdi.getScrollPane().getVerticalScrollBar().updateUI();
LGM.mdi.getScrollPane().getHorizontalScrollBar().updateUI();
LGM.mdi.getScrollPane().getViewport().updateUI();
Quote
LGM.mdi.getScrollPane().updateUI();LGM.mdi.addNotify();
LGM.mdi.repaint();
LGM.mdi.resizeDesktop();
LGM.mdi.updateUI();
LGM.mdi.getMDIManager().endDraggingFrame(frame);
LGM.mdi.setSize(1000,1000);
LGM.mdi.getScrollPane().updateUI();
LGM.mdi.getScrollPane().getVerticalScrollBar().updateUI();
LGM.mdi.getScrollPane().getHorizontalScrollBar().updateUI();
LGM.mdi.getScrollPane().getViewport().updateUI();