Set the window insets only if the custom background is enabled.

cusax-fix
Yana Stamcheva 18 years ago
parent 0bc0a61f69
commit cbfddfe03a

@ -400,11 +400,14 @@ public MainContentPane()
int borderSize = GuiActivator.getResources()
.getSettingsInt("mainWindowBorderSize");
this.setBorder(BorderFactory
.createEmptyBorder( borderSize,
borderSize,
borderSize,
borderSize));
if (isColorBgEnabled)
{
this.setBorder(BorderFactory
.createEmptyBorder( borderSize,
borderSize,
borderSize,
borderSize));
}
}
public void paintComponent(Graphics g)

@ -430,11 +430,14 @@ public MainContentPane()
int borderSize = GuiActivator.getResources()
.getSettingsInt("mainWindowBorderSize");
this.setBorder(BorderFactory
.createEmptyBorder( borderSize,
borderSize,
borderSize,
borderSize));
if (isColorBgEnabled)
{
this.setBorder(BorderFactory
.createEmptyBorder( borderSize,
borderSize,
borderSize,
borderSize));
}
}
public void paintComponent(Graphics g)

Loading…
Cancel
Save