Search in sources :

Example 1 with CreditsDialogController

use of delta.games.lotro.gui.about.CreditsDialogController in project lotro-companion by dmorcellet.

the class MainFrameController method doCredits.

private void doCredits() {
    String id = CreditsDialogController.getIdentifier();
    WindowController controller = _windowsManager.getWindow(id);
    if (controller == null) {
        JFrame thisFrame = getFrame();
        controller = new CreditsDialogController(this);
        _windowsManager.registerWindow(controller);
        Window w = controller.getWindow();
        w.setLocationRelativeTo(thisFrame);
    }
    controller.bringToFront();
}
Also used : Window(java.awt.Window) CreditsDialogController(delta.games.lotro.gui.about.CreditsDialogController) JFrame(javax.swing.JFrame) CharacterLevelWindowController(delta.games.lotro.gui.stats.levelling.CharacterLevelWindowController) ReputationSynopsisWindowController(delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController) WarbandsWindowController(delta.games.lotro.gui.stats.warbands.WarbandsWindowController) WindowController(delta.common.ui.swing.windows.WindowController) DefaultWindowController(delta.common.ui.swing.windows.DefaultWindowController) DeedsExplorerWindowController(delta.games.lotro.gui.deed.DeedsExplorerWindowController) MapWindowController(delta.games.lotro.maps.ui.MapWindowController) CraftingSynopsisWindowController(delta.games.lotro.gui.stats.crafting.synopsis.CraftingSynopsisWindowController)

Aggregations

DefaultWindowController (delta.common.ui.swing.windows.DefaultWindowController)1 WindowController (delta.common.ui.swing.windows.WindowController)1 CreditsDialogController (delta.games.lotro.gui.about.CreditsDialogController)1 DeedsExplorerWindowController (delta.games.lotro.gui.deed.DeedsExplorerWindowController)1 CraftingSynopsisWindowController (delta.games.lotro.gui.stats.crafting.synopsis.CraftingSynopsisWindowController)1 CharacterLevelWindowController (delta.games.lotro.gui.stats.levelling.CharacterLevelWindowController)1 ReputationSynopsisWindowController (delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController)1 WarbandsWindowController (delta.games.lotro.gui.stats.warbands.WarbandsWindowController)1 MapWindowController (delta.games.lotro.maps.ui.MapWindowController)1 Window (java.awt.Window)1 JFrame (javax.swing.JFrame)1