Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetBeans stuck on 2nd screen that doesn't exist

I'm running NetBeans 8 on Windows 7, and I had a problem when using my laptop away from my docking station, where it positions the IDE window on what would be a 2nd screen, and there is no way to move it into the laptop screen.

If I go back to my docking station, where I have a 2nd monitor, I can drag it back onto the 1st screen fine, but otherwise it looks like I am out of luck... is there any way to fix this if I'm not plugged into a 2nd monitor?

like image 347
Jason S Avatar asked Feb 02 '26 16:02

Jason S


2 Answers

You can move the window back on the screen using the following procedure without closing NetBeans or deleting any files.

  1. Give the offscreen NetBeans window focus using Alt-Tab or clicking it in the task bar.
  2. Press Alt-Space, then m, then left arrow key
  3. Move your mouse until the window is visible.
like image 181
Corey Avatar answered Feb 05 '26 08:02

Corey


This happens to me often and I resolve it as follows:

  1. Close NetBeans if it's open.
  2. Open the file WindowManager.wswmgr. On my system (Windows 10, NetBeans 12.5), this is located in C:/Users/ <MyUserName>/AppData/Roaming/NetBeans/12.5/config/Windows2Local/WindowManager.wswmgr.
  3. In the element <joined-properties> nested under <windowmanager> <main-window>, edit the x and y attributes to small non-negative values, for example 0 or 100. This sets the top left position of the main Netbeans window.
  4. Save the file, then reopen Netbeans This happens often enough that I have a shortcut on my desktop to this file.
like image 22
Jota Avatar answered Feb 05 '26 07:02

Jota



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!