There's a difference between reading through a tutorial and then playing with the examples and simply copying and pasting random lines you find on Stack Overflow and hoping for the best.
I could...
Type: Posts; User: KevinWorkman
There's a difference between reading through a tutorial and then playing with the examples and simply copying and pasting random lines you find on Stack Overflow and hoping for the best.
I could...
I'm not offended, I'm just pointing out that your approach makes it difficult to help you. It's not a ridiculous request to ask you to provide some example code that demonstrates what you're talking...
You're copying and pasting partial solutions you find on the internet without trying to understand them so you can avoid reading through a simple tutorial. That's a copy-paste programmer. You were...
Sigh. Gotta love copy-paste programmers...
Stop trying to "find" it and just read the tutorials. Do the examples, and play with them to see what the different methods do. And without an SSCCE, I can't even tell you what to do even if I wanted...
And what did you try from the tutorials? What happened when you tried copeg's suggestion? Saying "it's not what I'm looking for" when in fact, it's EXACTLY what you're looking for if you would just...
It's a Short, Self-Contained, Compilable Example. That means it contains just enough code to demonstrate the problem- no extra stuff. But it's still compilable, so we can copy and paste it into our...
I gave you two links that should help you with that, and copeg very kindly gave you a suggestion. If you want help, we need more information than "that didn't work". What exactly did you try? Did you...
Wow, you're a fast reader! Then I guess it's time to provide an SSCCE that demonstrates the problem and what you tried from those tutorials. Also, please read the link in my signature on asking...
What happened when you tried copeg's suggestion? Did you read the links I posted?
More recommended reading: How to Use the Focus Subsystem (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Other Swing Features)
I suggest you check out the API for useful methods and give some of them a try to see what they do: JPanel (Java Platform SE 6)