fixed bug with unused parameter

This commit is contained in:
ekallin 2023-12-19 11:33:23 +04:00
parent 6e51b8de54
commit f3e9d58dc1
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ public class FormLocomotiveCollections {
return MainPanel;
}
public FormLocomotiveCollections(Logger logger) {
public FormLocomotiveCollections() {
_logger = LogManager.getLogger("logger");

View File

@ -5,10 +5,10 @@ import org.apache.logging.log4j.Logger;
public class FrameLocomotiveCollection extends JFrame {
public FormLocomotiveCollections _formLocomotiveCollections;
public FrameLocomotiveCollection(Logger logger){
public FrameLocomotiveCollection(){
super();
setTitle("Коллекция");setDefaultCloseOperation(EXIT_ON_CLOSE);
_formLocomotiveCollections = new FormLocomotiveCollections(logger);
_formLocomotiveCollections = new FormLocomotiveCollections();
setContentPane(_formLocomotiveCollections.getPictureBoxCollections());
this.setJMenuBar(_formLocomotiveCollections.getMenuBar());
setDefaultLookAndFeelDecorated(false);

View File

@ -6,6 +6,6 @@ public class Main {
public static void main(String[] args)
{
System.setProperty("log4j.configurationFile", "C:\\code\\java\\ProjectElectricLocomotive\\loggerFile.xml");
new FrameLocomotiveCollection(LogManager.getLogger());
new FrameLocomotiveCollection();
}
}