Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360438

Summary: Design of ExpandableGroupBox
Product: z_Archived Reporter: Matthias Fischer <mfi>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: claudio.guglielmo, ivan.motsch, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Displayed ExpandableGroupBox
none
Examples of Section in various custom look and feel none

Description Matthias Fischer CLA 2011-10-10 09:28:05 EDT
Build Identifier: M20110210-1200

The GUI of the ExpandableGroupBox element does not belong to the other elements in Swing. At least the colors are wrong.

Reproducible: Always

Steps to Reproduce:
1. Add a GroupBox to a search form. 
2. Set getConfiguredExpandable = true of the GroupBox
3. Look at the displayed element in swing.
Comment 1 Matthias Fischer CLA 2011-10-10 09:29:01 EDT
Created attachment 204880 [details]
Displayed ExpandableGroupBox
Comment 2 Claudio Guglielmo CLA 2011-10-11 06:47:14 EDT
BTW: Please make sure the bugfix will be "look and feel" independent. At the moment a section does not look good with the default "look and feel"s (windows, metal, etc).
Comment 3 Ivan Motsch CLA 2011-12-28 08:47:22 EST
Fixed by using the l&f rendering of a button for the section header.
When expanded, the button is rendered a little bit higher than normal and cut off at the bottom with nice transparent fade-out.

Attached examples of different look and feels with a swing section element.
Comment 4 Ivan Motsch CLA 2011-12-28 08:56:52 EST
Created attachment 208823 [details]
Examples of Section in various custom look and feel
Comment 5 Matthias Fischer CLA 2011-12-29 08:53:21 EST
The color gradient is blue-white and not blue-transparent.
Comment 6 Ivan Motsch CLA 2012-01-09 04:35:48 EST
It seems that in synth look and feel sometimes the background color is not correctly adapted from the ui to the view/model.

I fixed this by wrapping the section button with a JPanel that should guarantee to not allow dirt in the excess space when expanded.

Tested with L&F Nimbus, Orson (a custom metal laf implementation) and Rayo (a custom synth laf implementation)
Comment 7 Matthias Fischer CLA 2012-02-01 02:41:20 EST
Test OK
Comment 8 Matthias Zimmermann CLA 2012-07-09 06:49:43 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)