fixed bug with unused parameter
This commit is contained in:
parent
6e51b8de54
commit
f3e9d58dc1
@ -37,7 +37,7 @@ public class FormLocomotiveCollections {
|
||||
return MainPanel;
|
||||
}
|
||||
|
||||
public FormLocomotiveCollections(Logger logger) {
|
||||
public FormLocomotiveCollections() {
|
||||
|
||||
_logger = LogManager.getLogger("logger");
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user