第二天更新……
先说一下昨天socket传输不同类型的接收,我的解决办法——抛出异常
https://blog.csdn.net/everything002/article/details/107549371
ois = new ObjectInputStream(socket.getInputStream());
Object temp = ois.readObject();
try {
product = (Product) temp;
}catch (ClassCastException e) {
pros = (ArrayList<Product>)temp;
}
回到今天的主题!
protected JTable table = new JTable(){
public Class getColumnClass(int column)
{