Dear all,
How to add more than 1 element in specific region or borderlayout?
If i create two panels both with west region, who will be placed first? Microsoft PowerPoint - 11-Layout-Managers.pptx:: File Format: PDF/Adobe Acrobat - View as HTMLBorder layout with the specified empty pixels between regions. â ¢ Adding Components. â “ add(component, BorderLayout.REGION) About three times more flexible than the other standard Add component 1 to the window, including constraints Specifies what to do to an element that is smaller than the cell size http://courses.coreservlets.com/Course-Materials/pdf/java5/11-Layout-Managers.pdfHOME | 6.1 â “ GUI Elements 6.1 â “ Components, Events, Listeners 6.1 â “ GUI :: File Format: PDF/Adobe Acrobat - View as HTMLthe order in which you add the components affects their positioning 6.3 â “ Border Layout. A border layout has five areas to which components can be added: North, South,. East, West, and Center to a region, the region takes up no room in the overall The top-level container often contains one or more http://cs.wellesley.edu/~cs230/PPTs/L07GUI.pdfHOME |
Thanks
You can't add 2 west regions. Instead, use a nested layout, e.g.
layout: 'border',
items: [{
region: 'west',
width: 200,
layout: 'border',
items: [{
region: 'west',
title: 'Panel 1',
width: 100
},{
region: 'center',
title: 'Panel 2'
}]
},{
region: 'center',
title: 'Center panel'
}]
Give the west region a layout - however you want to see the Panels placed in it.
And add thw two Panels to it. The west Panel will lay them out as you requested. Perhaps you want an inner border layout in the west Panel?
Animal,
Condor,
Thank you very much. Really appreciate that. Now i got it :)
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|