Pibd-12 Pyzhov_E.A. LabWork04 Hard #5

Closed
pyzhov.egor wants to merge 7 commits from LabWork04 into LabWork03
9 changed files with 8 additions and 15 deletions
Showing only changes of commit bf3fe46f43 - Show all commits

View File

@ -1,7 +1,7 @@
package Drawnings;
import CollectionGenericObjects.AbstractCompany;
import CollectionGenericObjects.BoatSharingService;
import CollectionGenericObjects.*;
import CollectionGenericObjects.MassiveGenericObjects;
import Forms.FormCatamaran;
import Forms.FormConstructor;
@ -103,26 +103,19 @@ public class DrawningAbstractCompany extends JComponent {
if (boat == null) {
return;
}
JFrame.setDefaultLookAndFeelDecorated(false);
JFrame frame = new JFrame("Катамаран");
FormCatamaran formCatamaran = new FormCatamaran();
frame.setContentPane(formCatamaran.PanelWrapper);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocation(500, 200);
formCatamaran.setBoat(boat);
frame.pack();
frame.setSize(1000, 725);
frame.setVisible(true);
formCatamaran.setDrawningBoat(boat);
formCatamaran.OpenFrame();
}
public boolean goToCheckFromRubbishBinAction() {
if (rubbishBinStack.isEmpty()) {
return false;
}
DrawningBoat boat = rubbishBinStack.pop();
DrawningBoat boat1 = rubbishBinStack.pop();
FormCatamaran formCatamaran1 = new FormCatamaran();
formCatamaran1.setBoat(boat);
createAndShowFrame("Катамаран", formCatamaran1.PanelWrapper);
formCatamaran1.setDrawningBoat(boat1);
formCatamaran1.OpenFrame();
return !rubbishBinStack.isEmpty();
}