不多说,直接贴图
package com;
import java.awt.Component;
import javax.swing.JComboBox;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;
import com.alee.laf.panel.WebPanel;
import com.alee.laf.rootpane.WebFrame;
import com.alee.laf.scroll.WebScrollPane;
import com.alee.laf.table.WebTable;
import com.alee.laf.table.renderers.WebTableCellRenderer;
import com.alee.utils.swing.WebDefaultCellEditor;
public class mainui {
private WebFrame wf;
public void Init() {
wf = new WebFrame();
wf.setSize(400, 200);
WebPanel jp=new WebPanel();
WebTable table = new WebTable ( new ExampleTableModel () );
WebScrollPane scrollPane = new WebScrollPane ( table );
// Custom column
TableColumn column = table.getColumnModel ().getColumn ( 1 );
// Custom renderer
WebTableCell