Table2GridBag 介绍
Table2gridbag 是一个使用类似HTML 表格的方式来创建用于配置布局管理器的Java代码。
示例代码:
public static void main(String[] args]) {
HashMap
hm.put(“okButton”, new JButton(“OK”));
hm.put(“cancelButton, new JButton(“Cancel”));
ConfigurablePanel panel = new ConfigurablePanel(new File(args[0]), hm);
JFrame f = new JFrame();
f.add(panel);
f.pack();
f.setVisible(true);
}