Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java SWT部分-can和x27;设置标题背景梯度_Java_User Interface_Swt_Jface_Sections - Fatal编程技术网

Java SWT部分-can和x27;设置标题背景梯度

Java SWT部分-can和x27;设置标题背景梯度,java,user-interface,swt,jface,sections,Java,User Interface,Swt,Jface,Sections,我正在使用FormToolkit创建部分 为什么setTitleBarGradientBackgroundAPI对标题栏的颜色没有任何影响?有一个错误报告。不幸的是,这看起来不像你可以期待这是固定的任何时间很快 Section#setTitleBarBackground正在工作-设置部分背景渐变的顶部颜色,如RCP中所示 Section#setTitleBarGradientBackground设置从未在Section类中使用的颜色(Section#color_GBG) 部分#setTitleB

我正在使用
FormToolkit
创建
部分

为什么
setTitleBarGradientBackground
API对标题栏的颜色没有任何影响?

有一个错误报告。不幸的是,这看起来不像你可以期待这是固定的任何时间很快

Section#setTitleBarBackground
正在工作-设置部分背景渐变的顶部颜色,如RCP中所示

Section#setTitleBarGradientBackground
设置从未在Section类中使用的颜色(
Section#color_GBG

部分#setTitleBarBorderColor
-无效

有一个bug报告。不幸的是,这看起来不像你可以期待这是固定的任何时间很快

Section#setTitleBarBackground
正在工作-设置部分背景渐变的顶部颜色,如RCP中所示

Section#setTitleBarGradientBackground
设置从未在Section类中使用的颜色(
Section#color_GBG

部分#setTitleBarBorderColor
-无效


检查
部分
源代码显示,该代码以以下方式实现:

/**
 * Sets the color of the title bar gradient background when TITLE_BAR style
 * is used. This color is used at the height where title controls end
 * (toggle, tool bar).
 * 
 * @param color
 *            the title bar gradient background
 */
public void setTitleBarGradientBackground(Color color) {
    putTitleBarColor(COLOR_GBG, color);
}

但是如果您查看
部分#onPaint(PaintEvent e)
您将不会发现
颜色的任何用法GBG

检查
部分
源代码显示,代码是以以下方式实现的:

/**
 * Sets the color of the title bar gradient background when TITLE_BAR style
 * is used. This color is used at the height where title controls end
 * (toggle, tool bar).
 * 
 * @param color
 *            the title bar gradient background
 */
public void setTitleBarGradientBackground(Color color) {
    putTitleBarColor(COLOR_GBG, color);
}
但是如果你看一下
部分#onPaint(PaintEvent e)
你就不会发现
COLOR\u GBG的任何用法