mirror of https://github.com/rusefi/rusefi.git
refactoring
This commit is contained in:
parent
4e4caa5d65
commit
4b66100202
|
@ -3,6 +3,7 @@ package com.rusefi.ui;
|
||||||
import com.rusefi.core.io.BundleUtil;
|
import com.rusefi.core.io.BundleUtil;
|
||||||
import com.rusefi.core.ui.AutoupdateUtil;
|
import com.rusefi.core.ui.AutoupdateUtil;
|
||||||
import com.rusefi.ui.util.URLLabel;
|
import com.rusefi.ui.util.URLLabel;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
@ -43,4 +44,9 @@ public class LogoHelper {
|
||||||
}
|
}
|
||||||
return AutoupdateUtil.loadIcon(logoName);
|
return AutoupdateUtil.loadIcon(logoName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public static URLLabel createUrlLabel() {
|
||||||
|
return new URLLabel(LINK_TEXT, URI);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,7 +212,7 @@ public class StartupFrame {
|
||||||
JLabel logo = LogoHelper.createLogoLabel();
|
JLabel logo = LogoHelper.createLogoLabel();
|
||||||
if (logo != null)
|
if (logo != null)
|
||||||
rightPanel.add(logo);
|
rightPanel.add(logo);
|
||||||
rightPanel.add(new URLLabel(LogoHelper.LINK_TEXT, LogoHelper.URI));
|
rightPanel.add(LogoHelper.createUrlLabel());
|
||||||
rightPanel.add(new JLabel("Version " + Launcher.CONSOLE_VERSION));
|
rightPanel.add(new JLabel("Version " + Launcher.CONSOLE_VERSION));
|
||||||
|
|
||||||
JPanel content = new JPanel(new BorderLayout());
|
JPanel content = new JPanel(new BorderLayout());
|
||||||
|
|
Loading…
Reference in New Issue