ANT打包内存溢出,设置表格列文本输入监控

    技术2022-05-20  46

    <javac classpathref="project.class.path" debug="true" deprecation="true" destdir="${dest}" nowarn="false" target="1.6" >在此标签中增加fork="true" memoryMaximumSize="512m"就行了---也可以改更大

    //设置表格文本监控--PlainDocumentEx继承PlainDocument重写insertString,详见下面链接.

    http://blog.csdn.net/mike_caoyong/archive/2011/04/13/6319581.aspx

    JTextField txt=new JTextField(); txt.setDocument(new PlainDocumentEx(PlainDocumentEx.TYPE_1,-100,100));    table.getColumn("name").setCellEditor(new DefaultCellEditor(txt));


    最新回复(0)