Package xgenerator.ui.swing.model

Examples of xgenerator.ui.swing.model.SqlDataTypeComboBoxModel


    for (int i = 0; i < tableColumnModel.getColumnCount(); i++) {
      column = tableColumnModel.getColumn(i);
      if (MetadataTableModel.COMMENTS_INDEX == i) {// 注释
        column.setPreferredWidth(250);
      } else if (MetadataTableModel.SQL_DATA_TYPE_INDEX == i) {// SQL数据类型
        JComboBox sqlDataTypeComboBox = new JComboBox(new SqlDataTypeComboBoxModel());
        column.setCellEditor(new DefaultCellEditor(sqlDataTypeComboBox));
        column.setPreferredWidth(220);
      } else if (MetadataTableModel.DATA_LENGTH_INDEX == i) {// 数据长度
        column.setPreferredWidth(100);
      } else if (MetadataTableModel.DATA_PRECISION_INDEX == i) {// 精度
View Full Code Here

TOP

Related Classes of xgenerator.ui.swing.model.SqlDataTypeComboBoxModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.