Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import javax.swing.*;
  2. import java.awt.*;
  3.  
  4. public class MyFrame extends JFrame {
  5. public static void main(String[] args) {
  6. new MyFrame().setVisible(true);
  7. }
  8. JTextArea text = new JTextArea();
  9. MyFrame(){
  10. setSize(100,100);
  11. setLayout(new BorderLayout());
  12. add(text, BorderLayout.CENTER);
  13. text.setText("foo");
  14. }
  15. }
Add Comment
Please, Sign In to add comment