Error « JTextArea « Java Swing Q&A





1. how to so the error in textarea    coderanch.com

2. JTextArea error    java-forums.org

I'm expecting more than 3 lines of text on JTextArea when i execute it with JOptionPane.showMessageDialog. But when i try to loop more than 1 time it shows error message. What's the matter with my loop? Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at checkingAccount.getTrans(checkingAccount.java:42) at sample13.main(sample13.java:31) Java Code: import java.awt.Font; import java.util.ArrayList; ...