⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ntftable.java

📁 UCS (Ultra Corba Simulator) is one more powerful corba client/servant simulator tool than other simi
💻 JAVA
字号:
package com.corba.mnq.ntf;

import java.util.*;

public class NtfTable extends javax.swing.JTable 
{
    private NtfNode current;

    /**
     * constructor .
     */
    
    public NtfTable() 
    {
        super( new NtfTableModel());
        setShowGrid(true);
        setAutoCreateColumnsFromModel(false);
        setDoubleBuffered(true);
        setCellSelectionEnabled(false);
        setColumnSelectionAllowed(false);
    }

    /**
     * @return the context node that is the source for this table
     */
    public NtfNode currentSource() 
    {
        return current;
    }

    /**
     * set table data
     * @param newData Vector
     * @param currentSource
     */
    public void setData(Vector newData, NtfNode currentSource) 
    {
        current = currentSource;
        ((NtfTableModel)super.getModel()).setDataVector( newData );
    }

    /**
     * update table view
     */
    public void update() 
    {
        if( current != null )
            current.display();
    }
}




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -