run icons.gant

This commit is contained in:
Aleksey Pivovarov
2017-04-13 15:55:27 +03:00
committed by Aleksey Pivovarov
parent a36449efe3
commit b6b398f06d
4 changed files with 24 additions and 5 deletions
@@ -14,4 +14,6 @@ public class PythonEducationalIcons {
}
public static final Icon Field = load("/icons/com/jetbrains/edu/Field.png"); // 16x16
public static final Icon Student = load("/icons/com/jetbrains/edu/student.png"); // 180x180
public static final Icon Teacher = load("/icons/com/jetbrains/edu/teacher.png"); // 180x180
}
@@ -2,8 +2,8 @@ package com.jetbrains.python.edu;
import com.intellij.ide.customize.AbstractCustomizeWizardStep;
import com.intellij.openapi.ui.VerticalFlowLayout;
import com.intellij.openapi.util.IconLoader;
import com.jetbrains.edu.learning.StudySettings;
import icons.PythonEducationalIcons;
import javax.swing.*;
import java.awt.event.ActionEvent;
@@ -13,7 +13,7 @@ public class CustomizeEduStepPanel extends AbstractCustomizeWizardStep {
public CustomizeEduStepPanel() {
final JPanel studentPanel = new JPanel(new VerticalFlowLayout());
final JButton student = new JButton(IconLoader.findIcon("/icons/com/jetbrains/edu/student.png"));
final JButton student = new JButton(PythonEducationalIcons.Student);
student.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@@ -24,7 +24,7 @@ public class CustomizeEduStepPanel extends AbstractCustomizeWizardStep {
studentPanel.add(new JLabel("Student", SwingConstants.CENTER));
add(studentPanel);
final JButton teacher = new JButton(IconLoader.findIcon("/icons/com/jetbrains/edu/teacher.png"));
final JButton teacher = new JButton(PythonEducationalIcons.Teacher);
final JPanel teacherPanel = new JPanel(new VerticalFlowLayout());
teacherPanel.add(teacher);
teacherPanel.add(new JLabel("Teacher", SwingConstants.CENTER));