Tweaked parameters of SetRouterManager.

Tweaked apply button size in configuration tab.
This commit is contained in:
dev
2011-07-31 09:42:21 +00:00
parent c3b61418d2
commit e6253a47d8
3 changed files with 13 additions and 18 deletions

View File

@ -95,7 +95,7 @@ public class ConfigurationTab extends TabLogoPanel {
final JButton btnApply = new JButton(Transl._("Apply"));
add(btnApply);
btnApply.setBounds(450, 272, 75, 24);
btnApply.setBounds(450, 272, 100, 24);
btnApply.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent arg0) {
@ -401,7 +401,9 @@ public class ConfigurationTab extends TabLogoPanel {
JOptionPane.INFORMATION_MESSAGE);
if (n == JOptionPane.YES_OPTION){
try {
SetRouterManager.execute(ROUTER_MANAGER.RESTART);
HashMap<ROUTER_MANAGER, String> hm = new HashMap<ROUTER_MANAGER,String>();
hm.put(ROUTER_MANAGER.RESTART, null);
SetRouterManager.execute(hm);
StatusHandler.setStatus(Transl._("Restarting I2P node.. "));
} catch (InvalidPasswordException e) {
StatusHandler.setStatus(Transl._("Restart failed: ") + DEFAULT_STATUS.INVALID_PASSWORD);