I created module in netBean platform, then I created window component there, and I want to specify default position in main window. For exapmle position “editor”. Where I can do it?
I created module in netBean platform, then I created window component there, and I
Share
It does not look like the NB WindowManager has a way to specify a position for a window in a manner similar to what you are asking. The screen is broken up into areas (known as modes) and there are methods that let you position a window/TopComponent into a mode.
There is a document that provides a good overview of the NB windowing system. It has links to more detailed info that will help you.
Edit:
Another strategy to use to reposition a window is to edit the layer file associated with your module. This file is usually called ‘layer.xml’.
Look for an entry like the following
Change the name of the subfolder under “Modes” to match the value that you want as the new position/mode…