aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resources/application.properties3
-rw-r--r--src/net/java/sip/communicator/impl/gui/UIServiceImpl.java12
2 files changed, 14 insertions, 1 deletions
diff --git a/resources/application.properties b/resources/application.properties
index 1435570..c2d8764 100644
--- a/resources/application.properties
+++ b/resources/application.properties
@@ -1,4 +1,5 @@
applicationName=SIP Communicator
applicationWebSite=http://sip-communicator.org
fontName=Verdana
-fontSize=12 \ No newline at end of file
+fontSize=12
+isLookAndFeelDecorated=false \ No newline at end of file
diff --git a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
index 4a962be..1b1eef2 100644
--- a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
@@ -792,6 +792,18 @@ public class UIServiceImpl
SIPCommLookAndFeel lf = new SIPCommLookAndFeel();
SIPCommLookAndFeel.setCurrentTheme(new SIPCommDefaultTheme());
+ // Check the isLookAndFeelDecorated property and set the appropriate
+ // default decoration.
+ boolean isDecorated
+ = new Boolean(ApplicationProperties
+ .getProperty("isLookAndFeelDecorated")).booleanValue();
+
+ if (isDecorated)
+ {
+ JFrame.setDefaultLookAndFeelDecorated(true);
+ JDialog.setDefaultLookAndFeelDecorated(true);
+ }
+
// we need to set the UIDefaults class loader so that it may access
// resources packed inside OSGI bundles
UIManager.put("ClassLoader", getClass().getClassLoader());