Java How To: Adding scrollbars to your program

preview_player
Показать описание
In this video I discuss JScrollPanes and the benefits of using it. Like the ability to scrolling through overflowing text. This component is VERY useful, so I hope you use it in the future if you don't already.
SOURCE CODE BELOW
Рекомендации по теме
Комментарии
Автор

Thank you so much man. I was having trouble with my program because I was assigning the JTextArea and JScrollPane to the same Border layout in my program. I looked at like 10 other tutorials before coming to this 1 and none of the other videos even mentioned the fact that you have to add the scrollpane to the panel instead of the text area

pspppe
Автор

Thank you for this easy and precise Tutorial!

Magier
Автор

Finally a simple and easy way to explain and show how to do this. All the other explanations are way to complicated and never worked for me.

robertshaw
Автор

If i have a jpanel with to many buttons on it so they go out of frame... Can i use it there? If so, how?

Haxor
Автор

Thanks, my teacher doesn't know how to explain. I'm glad you made this!

johan_juhic
Автор

thanks bro it's very simple but in other videos it's way too complicated and never work for me but after seeing your video it's working

PiyushJain
Автор

Thanks! This is real easy. You've just helped me with my assignment!

AlqGo
Автор

Thank you! crazy im watching this in 2022

wilgonzales
Автор

Dear Mentor, I am making an simple java swing program that could ask user to enter the number of text field and jlabels to create and that would be created in the another jframe .I tried caret listener but was facing problem, so please help me out in how to do tha t , I would be thankful to to you sir

pranshuranjan
Автор

hi Man how can scroll for a table with 43 columns

jardinkamannole
Автор

Hello can you explain how we can make a panel with buttons and textarea's scrollable just like how you did in the video, thanks

AhmedGhazel
Автор

hey there, I have the scrollbar, but When I add new text to my JTextArea the scrollbar goes to bottom automatically and you can't read what's the new text added said upside. Do u know how to solve it?

Zombiemen
Автор

How to put scroll bar in whole gui form

aliasger
Автор

Thanks a million. You have no idea How bad I needed this thing :)

itplus
Автор

This is brilliant! Can you show me how to run clean and build in spring tool suite so I can run the program as a jar file? Thanks

afifkhaja
Автор

This is great. Thank you. I appreciate it very much :D. How do I make this scroll with a a JPanel that's full of buttons? I have an array of buttons that I want to add and scroll down through

stratfender
Автор

I don't get my scrollbar working... any idea why?
bigTextField = new JTextArea();
JScrollPane scrollPane = new JScrollPane(bigTextField, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,



// when I add scrollPane and not bigTextField, as in your example my JTextArea dissapears.


bigTextField.setBounds(160, 75, 470, 234);


jimmyenander
Автор

thanks for the tutorial i learned a lot from the tutorial

rohithooda
Автор

can you please tell me how to add scrollbar to the panel if layout is null

amangoyal
Автор

the video was really helpful ...thanks sir

pranshuranjan