Managing Multiple Windows
Learn to create, coordinate, and communicate between multiple BrowserWindow instances, a core skill that builds directly on the main process and IPC fundamentals.
Beyond a Single Window
Real desktop apps often need multiple windows: a main editor, a settings panel, a preview. The main process owns and tracks all of them.
Creating a Window
Each window is a BrowserWindow instance created in the main process.
const { BrowserWindow } = require('electron');
function createWindow() {
const win = new BrowserWindow({ width: 600, height: 400 });
win.loadFile('index.html');
return win;
}All lessons in this course
- Main vs. Renderer Process
- Inter-Process Communication (IPC)
- Packaging Your Electron App
- Managing Multiple Windows