Configuring Window Components in a Netbeans Platform application
emmbec <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am developing an application based on the netbeans platform. I want to
use some windows (Window Component) in my application. I have managed to add
them using the Wizard that netbeans has, in the EXPLORER part. I just have
one problem that just can't seem to be able to figure it out.
I would like to customize the window position in my application so that the
first time that someone runs my application, they see the windows that I
created in a specific position (one on the upper left, other in the upper
right one in the bottom),and not all of them in the left part. I have
searched both the web and the forums without any success.
I think this has to be done in some XML file or in the topComponent
configuration maybe, I checked the WindowManager.wswmgr file and tried
putting the following code (generated when I manually move the window
positions of my application), but the result is just the same:
<?xml version="1.0" encoding="UTF-8"?>
<windowmanager version="2.1">
<main-window>
<joined-properties
x="64"
y="65"
width="1152"
height="894"
relative-x="0.0"
relative-y="0.0"
relative-width="0.0"
relative-height="0.0"
centered-horizontally="false"
centered-vertically="false"
maximize-if-width-below="0"
maximize-if-height-below="0"
frame-state="0"
/>
<separated-properties
x="128"
y="99"
width="1024"
height="79"
relative-x="0.0"
relative-y="0.0"
relative-width="0.0"
relative-height="0.0"
centered-horizontally="false"
centered-vertically="false"
frame-state="0"
/>
</main-window>
<editor-area state="joined" frame-state="0">
<constraints>
<path orientation="vertical" number="20" weight="0.0325" />
<path orientation="horizontal" number="40" weight="0.55" />
</constraints>
<bounds x="422" y="238" width="537" height="437" />
</editor-area>
<screen width="1280" height="1024"/>
<active-mode name="anonymousMode_3"/>
<toolbar configuration="Standard" preferred-icon-size="24"/>
<tc-list>
<tc-id id="LogTopComponent"/>
<tc-id id="DataTopComponent"/>
<tc-id id="ComponentTopComponent"/>
</tc-list>
</windowmanager>
Any help will be appreciated or a good tutorial on how to do this would be
great.
Thanks and regards.
--
View this message in context: http://www.nabble.com/Configuring-Window-Components-in-a-Netbeans-Platform-application-tf3658964.html#a10223542
Sent from the Netbeans - UI mailing list archive at Nabble.com.