import java.awt.*; import javax.swing.*; public class Exam31_1 extends JFrame { private Label title_lb = new Label("여기가 제목입니다.", Label.RIGHT); private TextField title_tf = new TextField(); private TextArea contents_ta = new TextArea(); private Button register_bt = new Button("글등록"); private GridLayout gl1 = new GridLayout(4, 1); private BorderLayout bl = new BorderLayout(10, 10); private Panel p..
//계산기 만들기 import java.awt.*; import javax.swing.*; public class homework02 extends JFrame { private Label lb = new Label("계산기"); private TextArea tf = new TextArea(); private Button[] bt = new Button[24]; private String[] str = { "%", "CE", "C", "X", "1/ⅹ", "ⅹ²", "²√ⅹ", "÷", "7", "8", "9", "×", "4", "5", "6", "-", "1", "2", "3", "+", "+/-", "0", ".", "=" }; private BorderLayout bl = new BorderLa..
import java.awt.*; import javax.swing.*; public class Exam33 extends JFrame { private FileDialog fdlg = new FileDialog(this, "열기", FileDialog.LOAD); private FileDialog fdlg1 = new FileDialog(this, "저장", FileDialog.SAVE); public Exam33(String title) {// 생성자 구성 super(title); // 상위 생성자를 호출 super.setSize(500, 500); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Dimension screen = Toolkit.getDefault..