private void initWindow() {
    setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);

    GuiUtils.setWindowIcons(
        this,
        Constants.APP_ICON_PATH_16X16,
        Constants.APP_ICON_PATH_32X32,
        Constants.APP_ICON_PATH_48X48);

    final GeneralSettingsConfigItem settings = BinDiffConfig.getInstance().getMainSettings();
    final boolean wasMaximized = settings.getWindowStateWasMaximized();
    if (!wasMaximized && !screenResolutionChanged()) {
      final int winX = settings.getWindowXPos();
      final int winY = settings.getWindowYPos();
      final int winWidth = settings.getWindowWidth();
      final int winHeight = settings.getWindowHeight();

      setLocation(winX, winY);
      setSize(winWidth, winHeight);
      setPreferredSize(new Dimension(winWidth, winHeight));
    } else {
      setLocation(100, 100);
      setSize(800, 600);
      setPreferredSize(new Dimension(800, 600));

      setExtendedState(Frame.MAXIMIZED_BOTH);
    }

    add(controller.getTabbedPanel(), BorderLayout.CENTER);

    pack();
  }
This class represents the BinDiff main window.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/window/MainWindow.java