Revert "Merge pull request #1886 from deathbeam/cleanup-sidebar"
This reverts commit f1a6267c9742038bb4a771d350291999c3d8431c, reversing changes made to 2b24b5eaa28735053823b210618318cbbe2afa56.
This commit is contained in:
@@ -228,6 +228,17 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user