Configuration Dialog title and position on the screen

cusax-fix
Yana Stamcheva 20 years ago
parent fffb8dc80e
commit 252acc0d77

@ -21,6 +21,7 @@ cancel=Cancel
close=Close
closeChatAfterNewMsg=You have received a new message less than 2 seconds ago. Are you sure you want to close this chat?
configure=Configure
configurations=Configurations
connectionFailed=Connection failed
connectionFailedMessage=The connection could not be established due to a network \n connection problem. Please check your network configuration.
connectionExpiredMessage=You are currently disconnected from the ? server.

@ -9,6 +9,7 @@
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Toolkit;
import java.awt.event.InputEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
@ -25,6 +26,7 @@
import net.java.sip.communicator.impl.gui.customcontrols.SIPCommList;
import net.java.sip.communicator.impl.gui.customcontrols.TitlePanel;
import net.java.sip.communicator.impl.gui.i18n.Messages;
import net.java.sip.communicator.impl.gui.main.MainFrame;
import net.java.sip.communicator.impl.gui.utils.Constants;
import net.java.sip.communicator.service.gui.ConfigurationDialog;
@ -60,6 +62,8 @@ public ConfigurationDialogImpl(MainFrame mainFrame) {
this.mainFrame = mainFrame;
this.setTitle(Messages.getString("configurations"));
this.getContentPane().setLayout(new BorderLayout());
this.addDefaultForms();
@ -69,6 +73,13 @@ public ConfigurationDialogImpl(MainFrame mainFrame) {
this.getContentPane().add(centerPanel, BorderLayout.CENTER);
this.getContentPane().add(configList, BorderLayout.WEST);
this.setLocation(
Toolkit.getDefaultToolkit().getScreenSize().width/2
- this.getWidth()/2,
Toolkit.getDefaultToolkit().getScreenSize().height/2
- this.getHeight()/2
);
}
/**

Loading…
Cancel
Save