Created
November 1, 2014 16:49
-
-
Save hendrikebbers/386e867c3a659bd6bafd to your computer and use it in GitHub Desktop.
JWarp Swing View
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"); | |
JLabel myLabel = new JLabel("Result..."); | |
myLabel.setName("myLabel"); | |
add(myTextField, BorderLayout.NORTH); | |
add(myButton, BorderLayout.CENTER); | |
add(myLabel, BorderLayout.SOUTH); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment