1. TextArea components coderanch.comHi All, I am trying to get a GUI with 2 TextArea's, one above the other. It compiles fine, but I am getting this error when i run it: java.lang.IllegalArgumentException: adding a window to a container at java.awt.Container.addImpl(Container.java:336) at javax.swing.JLayeredPane.addImpl (JLayeredPane.java:201) at java.awt.Container.add(Container.java:267) at javax.swing.JRootPane.setContentPane (JRootPane.java:358) at javax.swing.JFrame.setContentPane (JFrame.java:550) at StreamGUI.main(StreamGUI.java:52) The Code import java.awt.Color; import java.awt.TextArea; import java.awt.BorderLayout; import java.awt.event.*; ... |
2. JTextArea Affecting Other Components coderanch.com |
3. About TextArea Component coderanch.com |
4. GUI. puting JScrollPanel in JTextArea component forums.oracle.com |