僅能在IntelliJ裏面打開GUI Form文件來進行界面的拖拽設計--eclipse中也能夠了 git
當eclipse 打開.form文件時,提示有、對應的編輯工具能夠打開它,請到市場去安裝github
可是:本人安裝這個插件後仍是 打不開界面,應該是版本對應不上,形成:eclipse 打開的和IDEA打開的 From窗體代碼少了一大部分:(窗體建立代碼)微信
GUI initializer generated by IntelliJ IDEA GUI Designer 明確說明是有 工具生成的代碼。app
private void createUIComponents() { // TODO: place custom component creation code here } { // GUI initializer generated by IntelliJ IDEA GUI Designer // >>> IMPORTANT!! <<< // DO NOT EDIT OR ADD ANY CODE HERE! $$$setupUI$$$(); } /** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! * * @noinspection ALL */ private void $$$setupUI$$$() { mainPanel = new JPanel(); mainPanel.setLayout(new GridLayoutManager(1, 1, new Insets(8, 0, 0, 0), -1, -1)); tabbedPane = new JTabbedPane(); tabbedPane.setFont(new Font(tabbedPane.getFont().getName(), tabbedPane.getFont().getStyle(), tabbedPane.getFont().getSize())); mainPanel.add(tabbedPane, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false)); aboutPanel = new JPanel(); aboutPanel.setLayout(new GridLayoutManager(8, 6, new Insets(10, 10, 10, 10), -1, -1)); aboutPanel.setForeground(new Color(-4486500)); tabbedPane.addTab("關於", aboutPanel); final JLabel label1 = new JLabel(); label1.setEnabled(true); label1.setFont(new Font(label1.getFont().getName(), label1.getFont().getStyle(), 36)); label1.setText("WePush"); aboutPanel.add(label1, new GridConstraints(1, 0, 1, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label2 = new JLabel(); label2.setText("Proudly by 多多@放學了"); aboutPanel.add(label2, new GridConstraints(2, 0, 2, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); ....省略 Test.setBorder(BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), "測試")); } /** * @noinspection ALL */ public JComponent $$$getRootComponent$$$() { return mainPanel; } }
最終形成 eclipse沒法跑起來。eclipse
== 放到idea 中,ide
設定 Edit Configurations 爲application 添加如何 main函數函數
由於在此以前本人已經 跑過一遍了,第二次很容易就跑起來了,工具
第一次大概經歷:測試
lib裏面的四個jar包我沒有放到倉庫,我IDEA 環境jar包的路徑默認是用戶路徑,我就把那4個jar包手動放入Project Structure 的Libraries 裏面,把pom原來的<executions> 去掉,我在edit configurations 中添加 application 和Main class;運行的時候提示錯誤:ui
對象空指針:是由於:Tab下的一個Jpanel我不當心勾上了下面的,意思是自定義建立。若是不勾就是由程序初始化自動建立。
發現後,去掉勾,能夠跑起來。
第二次 從新導入項目後,由於上一次跑起來過一次了,全部lib下的4個jar包自動放到 了用戶路徑下的 jar庫中了。因此本次不須要 把pom原來的<executions> 去掉
便可跑起來,下面動態圖壓縮了,因此有點模糊
---
GitHub - rememberber/WePush: 專一批量推送的小而美的工具,目前支持的消息類型:微信模板消息、微信客服消息、阿里大於模板短信 。
https://github.com/rememberber/WePush
build 說明 · rememberber/WePush Wikihttps://github.com/rememberber/WePush/wiki/build