PIbd - 21 Bakalskaya E.D. LabWork7 Hard #10

Closed
ekallin wants to merge 12 commits from LabWork7 into LabWork6
3 changed files with 4 additions and 4 deletions
Showing only changes of commit f3e9d58dc1 - Show all commits

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();
}
}