创建复选框更大

时间:2015-10-09 08:33:54

标签: java swing jtable jcheckbox

我对这种解决问题的方法有疑问。我需要一个更大的复选框。问题作者在方法中的部分解决方案:

return {
    restrict: 'E',
    require: '^^rootNav',
    scope: {
        menuItem: '=navData'
    },
    link: function (scope, el, attrs, rootNavCtrl) {

        if (scope.menuItem && scope.menuItem.children && scope.menuItem.children.length > 0) {

            $http.get('/markup/components/root-navigation/sub-navigation.html').then(function (response) {
                el.replaceWith($compile(response.data)(scope);
            });

        }

    },
}

两个问题

  1. 如果我想将此面板添加到我的邮件面板,我应该返回哪个面板?
  2. private JCheckBox createCheckBox() { Icon normal = new ImageIcon(...); Icon selected = new ImageIcon(...); JTable table = new JTable(what parameter); table.setRowHeight(...); TableCellRenderer renderer = table.getDefaultRenderer(Boolean.class); JCheckBox checkBoxRenderer = (JCheckBox)renderer; checkBoxRenderer.setIcon( normal ); checkBoxRenderer.setSelectedIcon( selected ); DefaultCellEditor editor = (DefaultCellEditor)table.getDefaultEditor(Boolean.class); JCheckBox checkBoxEditor = (JCheckBox)editor.getComponent(); checkBoxEditor.setIcon( normal ); checkBoxEditor.setSelectedIcon( selected ); return which panel? } 的构造函数中可以提供哪些参数?

0 个答案:

没有答案