That's not really how this works. Did you read the tutorial I posted, or the Swing tutorial in general? Your syntax is not valid at all, which makes me question whether the code you posted is...
Type: Posts; User: KevinWorkman
That's not really how this works. Did you read the tutorial I posted, or the Swing tutorial in general? Your syntax is not valid at all, which makes me question whether the code you posted is...
I'm not sure what you expected this to do. You create a JTextArea, but then you attempt to add a String "Text Area" to the JFrame, which doesn't make sense. A String is not a component. Then you add...
Recommended reading: Using Text Components (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
After fixing the compiler error in this code (do you really do your development on your phone?), I can see that you successfully add a JLabel to your JFrame. What's stopping you from adding a...