[Pdo_mysql]
; If mysqlnd is used: Number of cache slots for the internal result set cache
; http://php.net/pdo_mysql.cache_size
pdo_mysql.cache_size = 2000
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
; http://php.net/pdo_mysql.default-socket
pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock
/** * This code was edited or generated using CloudGarden’s Jigloo * SWT/Swing GUI Builder, which is free for non-commercial * use. If Jigloo is being used commercially (ie, by a corporation, * company or business for any purpose whatever) then you * should purchase a license for each developer using Jigloo. * Please visit www.cloudgarden.com for details. * Use of Jigloo implies acceptance of these licensing terms. * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE. */ public class JFrameMain extends javax.swing.JFrame implements ActionListener{
/** * Auto-generated main method to display this JFrame */ public static void main(String[] args) { JFrameMain inst = new JFrameMain(); inst.setVisible(true); }
public JFrameMain() { super(); initGUI(); }
private void initGUI() { try { setSize(400, 300); { jMenuBar1 = new JMenuBar(); setJMenuBar(jMenuBar1); { Menu = new JMenu(); jMenuBar1.add(Menu); Menu.setText(“\抓\包”); Menu.setPreferredSize(new java.awt.Dimension(35, 21)); { startMenuItem = new JMenuItem(); Menu.add(startMenuItem); startMenuItem.setText(“开始”); startMenuItem.setActionCommand(“start”); startMenuItem.addActionListener(this); } { stopMenuItem = new JMenuItem(); Menu.add(stopMenuItem); stopMenuItem.setText(“停止”); stopMenuItem.setActionCommand(“stop”); stopMenuItem.addActionListener(this); } { saveMenuItem = new JMenuItem(); Menu.add(saveMenuItem); saveMenuItem.setText(“保存”); } { saveAsMenuItem = new JMenuItem(); Menu.add(saveAsMenuItem); saveAsMenuItem.setText(“保存为 …”); } { jSeparator2 = new JSeparator(); Menu.add(jSeparator2); } { exitMenuItem = new JMenuItem(); Menu.add(exitMenuItem); exitMenuItem.setText(“Exit”); exitMenuItem.setActionCommand(“exit”); exitMenuItem.addActionListener(this); } } }
tabModel=new DefaultTableModel(); tabModel.setDataVector(rows,columns); tabledisplay = new JTable( tabModel ); scrollPane= new JScrollPane(tabledisplay); this.getContentPane().add( new JScrollPane(tabledisplay),BorderLayout.CENTER);
/** * This code was edited or generated using CloudGarden’s Jigloo * SWT/Swing GUI Builder, which is free for non-commercial * use. If Jigloo is being used commercially (ie, by a corporation, * company or business for any purpose whatever) then you * should purchase a license for each developer using Jigloo. * Please visit www.cloudgarden.com for details. * Use of Jigloo implies acceptance of these licensing terms. * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE. */ public class Jcapturedialog extends javax.swing.JDialog implements ActionListener {