This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (isDebugging()) | |
| engine.documentProperty().addListener(new ChangeListener<Document>() { | |
| @Override | |
| public void changed(ObservableValue<? extends Document> prop, | |
| Document oldDoc, Document newDoc) { | |
| enableFirebug(engine); | |
| } | |
| }); | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| engine.setOnAlert(new EventHandler<WebEvent<String>>() { | |
| @Override | |
| public void handle(WebEvent<String> event) { | |
| JOptionPane.showMessageDialog( | |
| myPanel, | |
| event.getData(), | |
| "Alert Message", | |
| OptionPane.ERROR_MESSAGE); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.google.gwt.canvas.client.Canvas; | |
| import com.google.gwt.canvas.dom.client.Context2d; | |
| import com.google.gwt.canvas.dom.client.CssColor; | |
| import com.google.gwt.core.client.GWT; | |
| private void drawChart() | |
| { | |
| // Initialize the canvas. | |
| final Canvas canvas = Canvas.createIfSupported(); |
NewerOlder