package com.dua3.utility.logging;

import java.util.logging.Logger;

import javax.swing.JFrame;

public class LogWindowTest {
    
    private static Logger LOG = Logger.getLogger(LogWindowTest.class.getSimpleName());
    
    public static void main(String[] args) {
        LOG.info("Creating window");
        LogWindow w = new LogWindow();
        w.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        
        w.addLogger(LOG);
        w.setSize(600, 400);
        w.setVisible(true);
        
        LOG.info("initialized.");
        LOG.warning("Is everything alright?");
        LOG.severe("I dunno.");
        LOG.fine("lalalala.");
    }
    
}

@@ -119,20 +119,16 @@
 wTest %7B%0A
-    
 %0A    pri
@@ -139,16 +139,22 @@
  static 
+final 
 Logger L
@@ -213,20 +213,16 @@
 ame());%0A
-    
 %0A    pub
@@ -396,25 +396,17 @@
 CLOSE);%0A
-        
 %0A
+
         
@@ -484,17 +484,9 @@
 e);%0A
-        
 %0A
+
     
@@ -631,15 +631,11 @@
 ;%0A    %7D%0A
-    
 %0A%7D%0A

add missing final modifier