| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,6 @@ | |||
| 22 | 22 | package processing.app.ui; | |
| 23 | 23 | ||
| 24 | 24 | import java.awt.Dimension; | |
| 25 | - import java.awt.EventQueue; | ||
| 26 | 25 | import java.awt.event.ActionEvent; | |
| 27 | 26 | import java.awt.event.ActionListener; | |
| 28 | 27 | import java.io.File; | |
@@ -38,29 +37,6 @@ | |||
| 38 | 37 | ||
| 39 | 38 | public class WebFrame extends JFrame { | |
| 40 | 39 | ||
| 41 | - static public void main(String[] args) { | ||
| 42 | - Base.initPlatform(); | ||
| 43 | - | ||
| 44 | - //File indexFile = Base.getLibFile("welcome/index.html"); | ||
| 45 | - final File indexFile = new File("../build/shared/lib/welcome/index.html"); | ||
| 46 | - | ||
| 47 | - EventQueue.invokeLater(new Runnable() { | ||
| 48 | - public void run() { | ||
| 49 | - new WebFrame(indexFile, 400) { | ||
| 50 | - public void handleSubmit(StringDict dict) { | ||
| 51 | - dict.print(); | ||
| 52 | - handleClose(); | ||
| 53 | - } | ||
| 54 | - | ||
| 55 | - public void handleClose() { | ||
| 56 | - System.exit(0); | ||
| 57 | - } | ||
| 58 | - }; | ||
| 59 | - } | ||
| 60 | - }); | ||
| 61 | - } | ||
| 62 | - | ||
| 63 | - | ||
| 64 | 40 | public WebFrame(File file, int width) { | |
| 65 | 41 | //setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE); | |
| 66 | 42 | ||
@@ -89,7 +65,6 @@ public void actionPerformed(ActionEvent e) { | |||
| 89 | 65 | } | |
| 90 | 66 | ||
| 91 | 67 | textPane.addHyperlinkListener(new HyperlinkListener() { | |
| 92 | - | ||
| 93 | 68 | @Override | |
| 94 | 69 | public void hyperlinkUpdate(HyperlinkEvent e) { | |
| 95 | 70 | //System.out.println(e); | |
@@ -115,7 +90,7 @@ public void hyperlinkUpdate(HyperlinkEvent e) { | |||
| 115 | 90 | }); | |
| 116 | 91 | pack(); | |
| 117 | 92 | setLocationRelativeTo(null); | |
| 118 | - setVisible(true); | ||
| 93 | + //setVisible(true); | ||
| 119 | 94 | } | |
| 120 | 95 | ||
| 121 | 96 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,7 @@ | |||
| 39 | 39 | import processing.app.ui.EditorState; | |
| 40 | 40 | import processing.app.ui.EditorToolbar; | |
| 41 | 41 | import processing.app.ui.Toolkit; | |
| 42 | + import processing.app.ui.Welcome; | ||
| 42 | 43 | import processing.mode.java.debug.LineBreakpoint; | |
| 43 | 44 | import processing.mode.java.debug.LineHighlight; | |
| 44 | 45 | import processing.mode.java.debug.LineID; | |
@@ -349,6 +350,14 @@ public void actionPerformed(ActionEvent e) { | |||
| 349 | 350 | menu.add(item); | |
| 350 | 351 | } | |
| 351 | 352 | ||
| 353 | + item = new JMenuItem("Welcome to Processing 3"); | ||
| 354 | + item.addActionListener(new ActionListener() { | ||
| 355 | + public void actionPerformed(ActionEvent e) { | ||
| 356 | + new Welcome(); | ||
| 357 | + } | ||
| 358 | + }); | ||
| 359 | + menu.add(item); | ||
| 360 | + | ||
| 352 | 361 | item = new JMenuItem(Language.text("menu.help.environment")); | |
| 353 | 362 | item.addActionListener(new ActionListener() { | |
| 354 | 363 | public void actionPerformed(ActionEvent e) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments