| | |
| | | /** |
| | | * Launch the application. |
| | | */ |
| | | public static void main(String[] args) { |
| | | EventQueue.invokeLater(new Runnable() { |
| | | public void run() { |
| | | try { |
| | | NetDemo window = new NetDemo(); |
| | | window.frame.setResizable(false); |
| | | window.frame.setVisible(true); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | // public static void main(String[] args) { |
| | | // EventQueue.invokeLater(new Runnable() { |
| | | // public void run() { |
| | | // try { |
| | | // NetDemo window = new NetDemo(); |
| | | // window.frame.setResizable(false); |
| | | // window.frame.setVisible(true); |
| | | // } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | // } |
| | | // } |
| | | // }); |
| | | // } |
| | | |
| | | /** |
| | | * Create the application. |
| | | */ |
| | | public NetDemo() { |
| | | initialize(); |
| | | init(); |
| | | } |
| | | // public NetDemo() { |
| | | // initialize(); |
| | | // init(); |
| | | // } |
| | | |
| | | public void init() { |
| | | String strLogPath = "./sdklog/"; |