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
| void runAndWait(Runnable runnable) | |
| void runLater(Runnable runnable) | |
| boolean isToolkitThread() | |
| <T> T runCallableAndWait(Callable<T> callable) |
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
| UIToolkit.setPlatform(SwingPlatform.getInstance()); |
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
| ProcessChain.create(). | |
| addSupplierInPlatformThread(() -> myTextField.getText()). | |
| addFunctionInExecutor((t) -> WeatherService.getWeather(t)). | |
| addConsumerInPlatformThread((t) -> myLabel.setText(t)).onException((e) -> { | |
| myLabel.setText("Error"); | |
| e.printStackTrace(); | |
| }).run(); |
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
| 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"); |
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
| public class SwingDemoController { | |
| @ViewNode | |
| @ActionTrigger("copy-action") | |
| private JButton myButton; | |
| @ViewNode | |
| private JTextField myTextField; | |
| @ViewNode |
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
| 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(); |
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
| public class JavaFXDemoController { | |
| @ViewNode | |
| @ActionTrigger("copy-action") | |
| private Button myButton; | |
| @ViewNode | |
| private TextField myTextField; | |
| @ViewNode |
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
| <dependency> | |
| <groupId>com.guigarage</groupId> | |
| <artifactId>flatter</artifactId> | |
| <version>0.7</version> | |
| </dependency> |
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
| <dependency> | |
| <groupId>com.aquafx-project</groupId> | |
| <artifactId>aquafx</artifactId> | |
| <version>0.1</version> | |
| </dependency> |
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
| bower init | |
| bower install --save Polymer/polymer |
OlderNewer