Add support for hiding the sidebar

This commit is contained in:
Tomas Slusny
2018-04-27 19:53:07 +02:00
committed by Adam
parent 6c699cc54f
commit 20fcaf8d81
6 changed files with 237 additions and 63 deletions

View File

@@ -228,17 +228,6 @@ public class SwingUtil
});
}
/**
* Revalidate minimum frame size.
*
* @param frame the frame
*/
public static void revalidateMinimumSize(final JFrame frame)
{
// The JFrame only respects minimumSize if it was set by setMinimumSize, for some reason. (atleast on windows/native)
frame.setMinimumSize(frame.getLayout().minimumLayoutSize(frame));
}
private static BufferedImage resizeImage(BufferedImage image, int newWidth, int newHeight)
{
final Image tmp = image.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH);