void (int hideableHeight) { if (hideableHeight == 0) return; myDiffDetails.clear(); mySplitter.skipNextLayout(); myDetailsSplitter.getComponent().skipNextLayout(); Dimension dialogSize = getSize(); setSize(dialogSize.width, dialogSize.height - hideableHeight); repaint(); }