Skip to content

Instantly share code, notes, and snippets.

@yusuke
Created December 8, 2010 08:09
Show Gist options
  • Save yusuke/733021 to your computer and use it in GitHub Desktop.
Save yusuke/733021 to your computer and use it in GitHub Desktop.
fooって表示するだけ
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");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment