mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
run icons.gant
This commit is contained in:
committed by
Aleksey Pivovarov
parent
a36449efe3
commit
b6b398f06d
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user