JAVA swing TextArea 사이즈 조절
TextArea 사이즈를 조절 해도 변하지 않아서 개인적으로 찾은 방법 입니다 public class Test extends JFrame{ public Test(){ JPanel pl = new JPanel(); JTextArea ta = new JTextArea(7, 13); setLayout(null); setTitle("테스트"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); pl.setSize(300, 300); pl.add(new JScrollPane(ta)); add(pl); setSize(300, 300); setVisible(true); } public static void main(String[] args) { new Test(); } 위와 같이 ..
프로그래밍/JAVA
2021. 1. 25. 10:08