forked from External/mage
Fixed Issue 41. Made title displayed on the center.
This commit is contained in:
parent
7efd24464c
commit
14b8069afc
2 changed files with 11 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
if (arrowsPanel != null) arrowsPanel.setSize(width, height);
|
||||
if (title != null) {
|
||||
//title.setBorder(BorderFactory.createLineBorder(Color.red));
|
||||
title.setBounds((int)(width - titleRectangle.getWidth())/2, 180, titleRectangle.width, titleRectangle.height);
|
||||
title.setBounds((int)(width - titleRectangle.getWidth())/2, (int)(height - titleRectangle.getHeight())/2, titleRectangle.width, titleRectangle.height);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -311,6 +311,7 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
String server = prefs.get("serverAddress", "");
|
||||
int port = Integer.parseInt(prefs.get("serverPort", ""));
|
||||
try {
|
||||
server = "192.168.121.201";
|
||||
setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
||||
if (MageFrame.connect(userName, server, port)) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue