Lab5 finished+

This commit is contained in:
Artyom_Yashin 2023-12-08 16:38:45 +04:00
parent 0e1863eb80
commit 67bf8a6833
2 changed files with 8 additions and 9 deletions

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="21" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />

View File

@ -136,18 +136,18 @@ public class FormPlaneConfig extends JFrame {
JLabel squareLabel = new JLabel("Квадратные");
squareLabel.setHorizontalAlignment(SwingConstants.CENTER);
squareLabel.setVerticalAlignment(SwingConstants.CENTER);
JLabel roundLabel = new JLabel("Круглые сзади");
roundLabel.setHorizontalAlignment(SwingConstants.CENTER);
roundLabel.setVerticalAlignment(SwingConstants.CENTER);
JLabel crossLabel = new JLabel("Круглые спереди");
crossLabel.setHorizontalAlignment(SwingConstants.CENTER);
crossLabel.setVerticalAlignment(SwingConstants.CENTER);
JLabel roundedBackLabel = new JLabel("Круглые сзади");
roundedBackLabel.setHorizontalAlignment(SwingConstants.CENTER);
roundedBackLabel.setVerticalAlignment(SwingConstants.CENTER);
JLabel roundedFrontLabel = new JLabel("Круглые спереди");
roundedFrontLabel.setHorizontalAlignment(SwingConstants.CENTER);
roundedFrontLabel.setVerticalAlignment(SwingConstants.CENTER);
engines.setLayout(new GridLayout(1,1));
enginesRoundBack.setLayout(new GridLayout(1,1));
enginesRoundFront.setLayout(new GridLayout(1,1));
engines.add(squareLabel);
enginesRoundBack.add(roundLabel);
enginesRoundFront.add(crossLabel);
enginesRoundBack.add(roundedBackLabel);
enginesRoundFront.add(roundedFrontLabel);
engines.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
enginesRoundBack.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
enginesRoundFront.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));