View gist:586d8a7483343c0a350a
This file contains 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
void runAndWait(Runnable runnable) | |
void runLater(Runnable runnable) | |
boolean isToolkitThread() | |
<T> T runCallableAndWait(Callable<T> callable) |
View gist:8f703604408b1f31c807
This file contains 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
UIToolkit.setPlatform(SwingPlatform.getInstance()); |
View gist:fb4e75887bb6e1c10388
This file contains 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
ProcessChain.create(). | |
addSupplierInPlatformThread(() -> myTextField.getText()). | |
addFunctionInExecutor((t) -> WeatherService.getWeather(t)). | |
addConsumerInPlatformThread((t) -> myLabel.setText(t)).onException((e) -> { | |
myLabel.setText("Error"); | |
e.printStackTrace(); | |
}).run(); |
View gist:386e867c3a659bd6bafd
This file contains 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
public class SwingDemoView extends JPanel { | |
public SwingDemoView() { | |
setLayout(new BorderLayout()); | |
JButton myButton = new JButton("Get weather by city"); | |
myButton.setName("myButton"); | |
JTextField myTextField = new JTextField(); | |
myTextField.setName("myTextField"); |
View gist:d0282b33b5d78df79ebe
This file contains 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
public class SwingDemoController { | |
@ViewNode | |
@ActionTrigger("copy-action") | |
private JButton myButton; | |
@ViewNode | |
private JTextField myTextField; | |
@ViewNode |
View gist:d9b1b4d7f4b048ecc20d
This file contains 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
public class JavaFXDemoView extends VBox { | |
public JavaFXDemoView() { | |
setSpacing(12); | |
setPadding(new Insets(12)); | |
Button myButton = new Button("Get weather by city"); | |
myButton.setId("myButton"); | |
TextField myTextField = new TextField(); |
View gist:2fe09e4ad2f971fd3ffc
This file contains 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
public class JavaFXDemoController { | |
@ViewNode | |
@ActionTrigger("copy-action") | |
private Button myButton; | |
@ViewNode | |
private TextField myTextField; | |
@ViewNode |
View gist:8a4201a4104b96fb7417
This file contains 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
<dependency> | |
<groupId>com.aquafx-project</groupId> | |
<artifactId>aquafx</artifactId> | |
<version>0.1</version> | |
</dependency> |
View gist:f4536f16ecd0607a21fa
This file contains 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
bower init | |
bower install --save Polymer/polymer |
View gist:17685c4c660a17e1d204
This file contains 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
{ | |
"name": "polymer-test", | |
"version": "0.0.0", | |
"description": "A polymer playground", | |
"license": "MIT", | |
"keywords": [ | |
"polymer", | |
"web-components" | |
], | |
"ignore": [ |
OlderNewer