|
|
|
|
@ -25,7 +25,8 @@
|
|
|
|
|
*/
|
|
|
|
|
public class CreateGroupDialog
|
|
|
|
|
extends SIPCommDialog
|
|
|
|
|
implements ActionListener {
|
|
|
|
|
implements ActionListener, WindowFocusListener
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
private final Logger logger = Logger.getLogger(CreateGroupDialog.class.getName());
|
|
|
|
|
|
|
|
|
|
@ -68,7 +69,7 @@ public CreateGroupDialog(MainFrame mainFrame)
|
|
|
|
|
private void init()
|
|
|
|
|
{
|
|
|
|
|
this.setTitle(
|
|
|
|
|
GuiActivator.getResources().getI18NString("service.gui.ADD_GROUP"));
|
|
|
|
|
GuiActivator.getResources().getI18NString("service.gui.CREATE_GROUP"));
|
|
|
|
|
|
|
|
|
|
this.getRootPane().setDefaultButton(addButton);
|
|
|
|
|
this.addButton.setName("create");
|
|
|
|
|
@ -91,6 +92,7 @@ private void init()
|
|
|
|
|
this.mainPanel.add(buttonsPanel, BorderLayout.SOUTH);
|
|
|
|
|
|
|
|
|
|
this.getContentPane().add(mainPanel);
|
|
|
|
|
this.addWindowFocusListener(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void actionPerformed(ActionEvent e)
|
|
|
|
|
@ -108,6 +110,13 @@ else if(name.equals("cancel"))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void windowGainedFocus(WindowEvent e)
|
|
|
|
|
{
|
|
|
|
|
this.groupPanel.requestFocusInField();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void windowLostFocus(WindowEvent e) {;}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new meta contact group in a separate thread.
|
|
|
|
|
*/
|
|
|
|
|
@ -189,4 +198,4 @@ protected void close(boolean isEscaped)
|
|
|
|
|
{
|
|
|
|
|
this.cancelButton.doClick();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|