Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- import java.awt.*;
- public class MyFrame extends JFrame {
- public static void main(String[] args) {
- new MyFrame().setVisible(true);
- }
- JTextArea text = new JTextArea();
- MyFrame(){
- setSize(100,100);
- setLayout(new BorderLayout());
- add(text, BorderLayout.CENTER);
- text.setText("foo");
- }
- }
Add Comment
Please, Sign In to add comment