SWT中有颜色选择器吗?可以集成到JTable中吗?就是Table中每行有一个单元格是选择颜色

解决方案 »

  1.   

    是不是说实现这个功能?试试吧! 
    ColorDialog dialog = new ColorDialog(shell);
              RGB rgb = dialog.open();
              if (rgb != null) {
                table.setBackground(new Color(shell.getDisplay(), rgb));
              }
      

  2.   

    有!org.eclipse.swt.widgets 
    Class ColorDialog
    java.lang.Object
      org.eclipse.swt.widgets.Dialog
          org.eclipse.swt.widgets.ColorDialog--------------------------------------------------------------------------------public class ColorDialog
    extends DialogInstances of this class allow the user to select a color from a predefined set of available colors.