Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360438 - Design of ExpandableGroupBox
Summary: Design of ExpandableGroupBox
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 09:28 EDT by Matthias Fischer CLA
Modified: 2021-08-19 11:19 EDT (History)
3 users (show)

See Also:


Attachments
Displayed ExpandableGroupBox (2.49 KB, image/png)
2011-10-10 09:29 EDT, Matthias Fischer CLA
no flags Details
Examples of Section in various custom look and feel (29.62 KB, image/png)
2011-12-28 08:56 EST, Ivan Motsch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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)