You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ps...@apache.org on 2003/10/08 23:57:40 UTC
cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw LogUI.java
psmith 2003/10/08 14:57:40
Modified: src/java/org/apache/log4j/chainsaw LogUI.java
Log:
reordered the point where the L&F is applied. Under W2k the Welcome panel
was still using the Metal L&F prior to this change.
Revision Changes Path
1.38 +14 -15 jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java
Index: LogUI.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- LogUI.java 27 Sep 2003 01:50:34 -0000 1.37
+++ LogUI.java 8 Oct 2003 21:57:40 -0000 1.38
@@ -417,21 +417,6 @@
getSettingsManager().configure(
new SettingsListener() {
public void loadSettings(LoadSettingsEvent event) {
- lookAndFeelClassName = event.getSetting(LogUI.LOOK_AND_FEEL);
-
- if (lookAndFeelClassName != null) {
- applyLookAndFeel(lookAndFeelClassName);
- }
- }
-
- public void saveSettings(SaveSettingsEvent event) {
- //required because of SettingsListener interface..not used during load
- }
- });
-
- getSettingsManager().configure(
- new SettingsListener() {
- public void loadSettings(LoadSettingsEvent event) {
String configFile = event.getSetting(LogUI.CONFIG_FILE_TO_USE);
//if both a config file are defined and a log4j.configuration property are set,
@@ -598,6 +583,20 @@
exit();
}
});
+ getSettingsManager().configure(
+ new SettingsListener() {
+ public void loadSettings(LoadSettingsEvent event) {
+ lookAndFeelClassName = event.getSetting(LogUI.LOOK_AND_FEEL);
+
+ if (lookAndFeelClassName != null) {
+ applyLookAndFeel(lookAndFeelClassName);
+ }
+ }
+
+ public void saveSettings(SaveSettingsEvent event) {
+ //required because of SettingsListener interface..not used during load
+ }
+ });
pack();
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org