`
文章列表
http://zhaohaiyang.iteye.com/blog/571229
http://www.iteye.com/topic/112244
http://jiangyongyuan.iteye.com/blog/352053
http://telecom-it.csdn.net/download.aspx
import java.util.Vector; import javax.swing.table.DefaultTableModel; //继承数据源,实现传啥控件就显示啥控件 public class MyTableModel extends DefaultTableModel { public Class getColumnClass(int col) { //取出第一行数据,得到该行的数据类型 Vector v = (Vector)dataVector.elementAt(0); return v.elemen ...
import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.DefaultCellEditor; import javax.swing.JButton; import javax.swing.JTable; import javax.swing.JTextField; public class MyButtonEditor extends DefaultCellEditor { pri ...
import java.awt.Component; import javax.swing.JButton; import javax.swing.JTable; import javax.swing.table.TableCellRenderer; public class MyButtonTableRender extends JButton implements TableCellRenderer { @Override public Component getTableCellRendererComponent(JTable table, Object ...
private void initTable() throws FileNotFoundException, IOException { //表头 String[] headTitle = { "状态", "名称", "值" }; //图标 Icon icon = new ImageIcon("img/activate_up.gif"); Icon icon2 = new ImageIcon("img/activate_down.gif"); ...
//词典 private Map<String, String> map = new HashMap<String, String>(); //最大词组 private final static int MAX_PHRASE = 5; public static void main(String[] args) throws Exception { StrUtil su = new StrUtil(); su.initWordMap(); su.cent("“标准”输出流。此流已打开并准备接受输出数据。通常, ...
http://blog.csdn.net/java2000_net/archive/2008/10/24/3136124.aspx
http://jinguo.iteye.com/blog/540160
//初始化菜单 public void initMenu() throws ParserConfigurationException, SAXException, IOException { //加载菜单文件 XmlUtil xml = new XmlUtil("menu.xml"); List<MenuBean> mainMenu = xml.getMenu(); //循环主菜单 for(int i = 0; i < mainMenu.size(); i++) { MenuBean me ...
public class MenuBean { /** * name:菜单名 text:显示的文本 action:动作对应的类路径 method:类的方法 shortcutkey:快捷键 */ private String name; private String text; private String action; private String method; private String after; private String before; private String shortcutke ...
<?xml version="1.0" encoding="UTF-8"?> <Menu> <!-- MainMenu:主菜单 ItemMenu:子菜单 --> <!-- name:菜单名 text:显示的文本 action:动作对应的类路径 method:类的方法 before:类方法在菜单弹出前触发 after:类方法在菜单弹出后触发 shortcutkey:快捷键 --> <!-- <MainMenu name="" text="" ...
Global site tag (gtag.js) - Google Analytics