[SOLVED!]java.lang.ClassCastException error
hey guys me again I'm confused abt something. I keep getting this error: java.lang.ClassCastException: class javax.swing.JTextArea cannot be cast to class project.frame (javax.swing.JTextArea is in module java.desktop of loader 'bootstrap'; project.frame is in unnamed module of loader 'app'). at project.frame.load(frame.java:76) at project.frame$1.run(frame.java:60) first it was JLayeredPane then JFrame and now JTextArea. I'm really confused as why this is. if i can fix this, then ill be able to save my data...after like so many hours xd. i've tried searching it up but i don't really get it. Like i have to change something abt line 75, but idk to what here is my code, not the main class. https://code.sololearn.com/c4U660OrbtGN maybe Serializable doesn't work with swing...if that's the case...fml btw sorry, im here again xd