Search in sources :

Example 1 with AboutDialogController

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

the class MainFrameController method doAbout.

private void doAbout() {
    String id = AboutDialogController.getIdentifier();
    WindowController controller = _windowsManager.getWindow(id);
    if (controller == null) {
        JFrame thisFrame = getFrame();
        controller = new AboutDialogController(this);
        _windowsManager.registerWindow(controller);
        Window w = controller.getWindow();
        w.setLocationRelativeTo(thisFrame);
        Point p = w.getLocation();
        w.setLocation(p.x + 100, p.y + 100);
    }
    controller.bringToFront();
}
Also used : Window(java.awt.Window) JFrame(javax.swing.JFrame) AboutDialogController(delta.games.lotro.gui.about.AboutDialogController) Point(java.awt.Point) 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 AboutDialogController (delta.games.lotro.gui.about.AboutDialogController)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 Point (java.awt.Point)1 Window (java.awt.Window)1 JFrame (javax.swing.JFrame)1