Search in sources :

Example 1 with CharacterFileWindowController

use of delta.games.lotro.gui.character.CharacterFileWindowController in project lotro-companion by dmorcellet.

the class ToonsManagementController method showToon.

private void showToon(CharacterFile toon) {
    String serverName = toon.getServerName();
    String toonName = toon.getName();
    String id = CharacterFileWindowController.getIdentifier(serverName, toonName);
    WindowController controller = _mainWindowsManager.getWindow(id);
    if (controller == null) {
        controller = new CharacterFileWindowController(toon);
        _mainWindowsManager.registerWindow(controller);
        controller.getWindow().setLocationRelativeTo(getPanel());
    }
    controller.bringToFront();
}
Also used : CharacterFileWindowController(delta.games.lotro.gui.character.CharacterFileWindowController) WindowController(delta.common.ui.swing.windows.WindowController) CharacterFileWindowController(delta.games.lotro.gui.character.CharacterFileWindowController)

Aggregations

WindowController (delta.common.ui.swing.windows.WindowController)1 CharacterFileWindowController (delta.games.lotro.gui.character.CharacterFileWindowController)1