Skip to content

Commit 8e13e93

Browse files
Fix logo
1 parent b3ff9ec commit 8e13e93

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.classpath

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry kind="src" path="src"/>
4-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
5+
<accessrules>
6+
<accessrule kind="accessible" pattern="com/apple/eawt/**"/>
7+
</accessrules>
8+
</classpathentry>
59
<classpathentry kind="output" path="bin"/>
610
</classpath>

bin/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.

src/io/github/coursesplus/installer/CoursesPlusInstaller.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@
1515
import java.nio.file.Paths;
1616
import java.nio.file.attribute.PosixFilePermission;
1717
import java.util.Set;
18-
import java.util.concurrent.TimeUnit;
1918
import java.util.logging.Level;
2019
import java.util.logging.Logger;
2120

21+
import javax.swing.ImageIcon;
2222
import javax.swing.JButton;
2323
import javax.swing.JFrame;
2424
import javax.swing.JLabel;
2525
import javax.swing.JOptionPane;
2626

27+
import com.apple.eawt.Application;
28+
2729
@SuppressWarnings("serial")
2830
public class CoursesPlusInstaller extends JFrame implements ActionListener {
2931
public static final String VERSION = "0.1";
@@ -43,14 +45,14 @@ public class CoursesPlusInstaller extends JFrame implements ActionListener {
4345

4446
public static final String LOAD_PAGE = "data:text/html,<h1>Loading, please wait...</h1><h2>Do not navigate away from this page while installation is in progress.</h2>";
4547

46-
Application.getApplication().setDockIconImage(new ImageIcon("Logo.png").getImage());
47-
4848
public CoursesPlusInstaller() {
4949
super("CoursesPlus Installer v" + VERSION);
5050

5151
logger = Logger.getLogger(CoursesPlusInstaller.class.getName());
5252

5353
screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
54+
55+
Application.getApplication().setDockIconImage(new ImageIcon("Logo.png").getImage());
5456

5557
try {
5658
// try and load Lato
@@ -79,7 +81,7 @@ public CoursesPlusInstaller() {
7981
install.addActionListener(this);
8082
add(install);
8183

82-
JLabel info = new JLabel("<html><div width=\"400px\" style=\"text-align:center;\">Hi" + System.getProperty("user.name"), + "This installer will install CoursesPlus into Google Chrome. It will connect to the Internet to download the latest version of CoursesPlus, and then set up automatic updates. Anonymous analytics may be sent to us for statistical purposes. If an error occurs, you will be given the option to transmit information about the error to us so we can fix it.</div></html>", JLabel.CENTER);
84+
JLabel info = new JLabel("<html><div width=\"400px\" style=\"text-align:center;\">Hi" + System.getProperty("user.name") + "This installer will install CoursesPlus into Google Chrome. It will connect to the Internet to download the latest version of CoursesPlus, and then set up automatic updates. Anonymous analytics may be sent to us for statistical purposes. If an error occurs, you will be given the option to transmit information about the error to us so we can fix it.</div></html>", JLabel.CENTER);
8385
info.setFont(font);
8486
add(info);
8587

0 commit comments

Comments
 (0)