Hello,
I am novice programmer and I am experimenting with swing. I created a scrollabe text area that seems to scroll great when I hold down a key for a long time. But, when I select a different tabbed pane and then come back to the pane containing the text area, I find that all objects in that pane have lost there shapes. What is the remedy for this problem? Please help, I have been stuck with this problem for a whole week. Thanks in advance.
ryy705 0
Junior Poster
Recommended Answers
Jump to PostWouldn't it be better to but a JTextArea inside of a JScrollPane and then put the pane on your panel?
And what do you mean by your objects lose their shapes?
Jump to PostI'm pretty sure its the way you're working with the GridBagLayout. If i saw correctly there isn't any FILL on any of the components.
Now if you resize your frame larger the components will reappear.
First off, I would recommend that each tabs JPanel be its own class. …
All 6 Replies
hooknc 1
Posting Whiz in Training
ryy705 0
Junior Poster
ryy705 0
Junior Poster
hooknc 1
Posting Whiz in Training
ryy705 0
Junior Poster
hooknc 1
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.