EDU-715 noname buttons on the new educational project dialog

This commit is contained in:
Ekaterina Tuzova
2016-08-06 16:55:59 +03:00
parent ab78462c9e
commit ed2767cc12
2 changed files with 8 additions and 0 deletions
@@ -78,7 +78,9 @@ public class StudyNewProjectPanel extends JPanel implements PanelWithAnchor {
final LabeledComponent<ComboBox> coursesCombo = LabeledComponent.create(myCoursesComboBox, "Courses:", BorderLayout.WEST);
myRefreshButton = new FixedSizeButton(coursesCombo);
myRefreshButton.putClientProperty("JButton.buttonType", null);
myRefreshButton.setIcon(AllIcons.Actions.Refresh);
myRefreshButton.putClientProperty("JButton.buttonType", "square");
myBrowseButton = new FixedSizeButton(coursesCombo);
final JPanel comboPanel = new JPanel(new BorderLayout());
@@ -139,7 +141,9 @@ public class StudyNewProjectPanel extends JPanel implements PanelWithAnchor {
}
private void setupBrowseButton() {
myBrowseButton.putClientProperty("JButton.buttonType", null);
myBrowseButton.setIcon(InteractiveLearningIcons.InterpreterGear);
myBrowseButton.putClientProperty("JButton.buttonType", "square");
final FileChooserDescriptor fileChooser = new FileChooserDescriptor(true, false, false, true, false, false) {
@Override
public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) {
@@ -247,7 +247,9 @@ public class ProjectSpecificSettingsStep extends ProjectSettingsStepBase impleme
private void addInterpreterButton(final JPanel locationPanel, final LabeledComponent<TextFieldWithBrowseButton> location) {
final JButton interpreterButton = new FixedSizeButton(location);
interpreterButton.putClientProperty("JButton.buttonType", null);
interpreterButton.setIcon(PythonIcons.Python.Python);
interpreterButton.putClientProperty("JButton.buttonType", "square");
interpreterButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@@ -286,7 +288,9 @@ public class ProjectSpecificSettingsStep extends ProjectSettingsStepBase impleme
final Sdk preferred = compatibleSdk;
mySdkCombo = new PythonSdkChooserCombo(project, sdks, sdk -> sdk == preferred);
mySdkCombo.putClientProperty("JButton.buttonType", null);
mySdkCombo.setButtonIcon(PythonIcons.Python.InterpreterGear);
mySdkCombo.putClientProperty("JButton.buttonType", "square");
return LabeledComponent.create(mySdkCombo, "Interpreter", BorderLayout.WEST);
}