blob: 460e189e3d08d978cf9aa4bf91596bc3ceb2851a [file] [log] [blame]
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
= How do I use Matisse/GroupLayout (new form editor/layout manager in 5.0) in my window system components?
:page-layout: wikidev
:page-tags: wiki, devfaq, needsreview
:jbake-status: published
:keywords: Apache NetBeans wiki DevFaqWindowsMatisse
:description: Apache NetBeans wiki DevFaqWindowsMatisse
:toc: left
:toc-title:
:page-syntax: true
:page-wikidevsection: _window_system
:page-position: 4
When you create a new window system component (xref:./DevFaqWindowsTopComponent.adoc[TopComponent]) using the template wizard in NB 5.0 or greater, the default layout manager is `GroupLayout` (the new, super-easy-to-design-with layout manager in NB 5.0). So you do not need to do anything special. Your module will have a declared dependency on the corresponding library module which is in the NB Platform as of 5.0.
`GroupLayout` is included in JDK 6; as long as JDK 5 needs to be supported (until JDK 8 is released at a minimum), NetBeans will use the library version rather than the JDK 6 version.
---
Applies to: NetBeans 5.0, 5.5, 6.x