From 13748163698080e1229c544474c3072c65166f64 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Fri, 28 Apr 2017 16:11:34 +0300 Subject: [PATCH] EDU-934 Cropped teacher-student images at customisation screen on macOS --- .../src/com/jetbrains/python/edu/CustomizeEduStepPanel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java b/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java index 82c80d9ad12b..67da4acc113f 100644 --- a/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java +++ b/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java @@ -6,14 +6,17 @@ import com.jetbrains.edu.learning.StudySettings; import icons.PythonEducationalIcons; import javax.swing.*; +import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class CustomizeEduStepPanel extends AbstractCustomizeWizardStep { public CustomizeEduStepPanel() { + int iconSize = 180; final JPanel studentPanel = new JPanel(new VerticalFlowLayout()); final JButton student = new JButton(PythonEducationalIcons.Student); + student.setPreferredSize(new Dimension(iconSize, iconSize)); student.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -25,6 +28,7 @@ public class CustomizeEduStepPanel extends AbstractCustomizeWizardStep { add(studentPanel); final JButton teacher = new JButton(PythonEducationalIcons.Teacher); + teacher.setPreferredSize(new Dimension(iconSize, iconSize)); final JPanel teacherPanel = new JPanel(new VerticalFlowLayout()); teacherPanel.add(teacher); teacherPanel.add(new JLabel("Teacher", SwingConstants.CENTER));