projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add about dialog
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
gui
/
SwingInterface.java
diff --git
a/src/net/pterodactylus/jsite/gui/SwingInterface.java
b/src/net/pterodactylus/jsite/gui/SwingInterface.java
index
54dec0d
..
e98fa80
100644
(file)
--- a/
src/net/pterodactylus/jsite/gui/SwingInterface.java
+++ b/
src/net/pterodactylus/jsite/gui/SwingInterface.java
@@
-76,6
+76,9
@@
public class SwingInterface implements CoreListener {
/** The “add project” action. */
private I18nAction addProjectAction;
/** The “add project” action. */
private I18nAction addProjectAction;
+ /** The “about” dialog. */
+ private AboutDialog aboutDialog;
+
/** The list of all defined nodes. */
private List<Node> nodeList;
/** The list of all defined nodes. */
private List<Node> nodeList;
@@
-88,6
+91,9
@@
public class SwingInterface implements CoreListener {
public SwingInterface(Core core) {
this.core = core;
I18n.setLocale(Locale.ENGLISH); /* TODO - load config */
public SwingInterface(Core core) {
this.core = core;
I18n.setLocale(Locale.ENGLISH); /* TODO - load config */
+ System.setProperty("swing.aatext", "true");
+ System.setProperty("swing.plaf.metal.controlFont", "Tahoma");
+ System.setProperty("swing.plaf.metal.userFont", "Tahoma");
initActions();
initDialogs();
}
initActions();
initDialogs();
}
@@
-318,6
+324,7
@@
public class SwingInterface implements CoreListener {
*/
private void initDialogs() {
manageNodesDialog = new ManageNodesDialog(this);
*/
private void initDialogs() {
manageNodesDialog = new ManageNodesDialog(this);
+ aboutDialog = new AboutDialog(this);
}
//
}
//
@@
-384,6
+391,7
@@
public class SwingInterface implements CoreListener {
* Shows the “about” dialog.
*/
private void helpAbout() {
* Shows the “about” dialog.
*/
private void helpAbout() {
+ aboutDialog.setVisible(true);
}
/**
}
/**