私はnetbeansプラットフォームを使って小さなアプリケーションを設計しました。今ではnetbeansプラットフォームが提供する基本レイアウトの方向を変更したいと思います。以下のようなウィンドウが表示されます Netbeansプラットフォームのレイアウト
起動時に以下のように表示します。私は自分のニーズに合うようにサイズを変更しましたが、私はそれだけで起こることを望みます。
激しいグーグルの後、私はモジュールの一つでlayer.xml
を作成して、次のコードを追加する必要があることがわかりました。
<folder name="Windows2"> <file name="WindowManager.wswmgr" url="WindowManager.wswmgr"/> </folder>
私WindowManager.wswmgr
ファイルは私が今何をしなければならないこれは何
<windowmanager version="2.1">
<main-window>
<joined-properties centered-horizontally="true" centered-vertically="true"
width="630" height="400" />
<separated-properties centered-horizontally="true" relative-y="0.1"
relative-width="0.6" relative-height="0.08" />
</main-window>
<editor-area state="joined">
<constraints>
<path orientation="horizontal" number="60" weight="0.5" />
<path orientation="vertical" number="40" weight="0.7" />
<path orientation="horizontal" number="40" weight="0.5" />
</constraints>
<relative-bounds x="33" y="24" width="42" height="44"/>
</editor-area>
<screen width="1024" height="800" />
<active-mode name="explorer" />
<maximized-mode name="" />
<toolbar configuration="Standard" preferred-icon-size="24" />
のように見えますか?私はいくつかの明白なものが欠けている?
--EDIT--
にlayer.xml
<filesystem>
<folder name="Actions">
<folder name="Window">
<file name="org-choose-transaction-ChooseTransactionTopComponent.instance_hidden"/>
<file name="org-choose-transaction-EnterAmountTopComponent.instance">
<attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
<attr name="preferredID" stringvalue="ChooseTransactionTopComponent"/>
</file>
<file name="org-prowze-maketransaction-TransactionTopComponent.instance">
<attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
<attr name="preferredID" stringvalue="transactionTopComponent"/>
</file>
<file name="org-prowze-maketransaction-transactionTopComponent.instance_hidden"/>
</folder>
</folder>
<folder name="Toolbars_hidden"/>
<folder name="Windows2">
<folder name="Modes">
<file name="explorer.wsmode" url="explorer.wsmode"/>
<folder name="explorer"/>
</folder>
<file name="WindowManager.wswmgr" url="WindowManager.wswmgr"/>
</folder>
explorer.wsmode
<mode version="2.4">
<module name="org.netbeans.core.ui/1" spec="1.2" />
<name unique="explorer" />
<kind type="view" />
<state type="joined" />
<constraints>
<path orientation="horizontal" number="20" weight="0.3"/>
<path orientation="vertical" number="20" weight="0.5"/>
</constraints>
<bounds x="192" y="228" width="614" height="520" />
<frame state="0"/>
<active-tc id="CustomerViewerTopComponent" />
<empty-behavior permanent="true"/></mode>
にあるDTDを使用することです私は100%を確認していないが、私はあなたが作る場合、あなたのトップコンポーネントは、最小サイズ( 'のgetMinimumSize(実装)'にあると思いますあなたのグラフィックスを考慮してください)あなたのアプリケーションの "Branding"プロパティで "Resin mininum size"を有効にすると、これは自動的に起こるはずです。 –
Respect最小サイズは、サイズ変更時にのみ効果があります。実際に試しました! – Deepak
OK、わからなかった。 –