Register and join over 40,000 other developers!
Recent Topics
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

How to create ScrollPane?
Started by toto_7, Nov 27 2011 01:58 PM
6 replies to this topic
#1
Posted 27 November 2011 - 01:58 PM
Hello,
I need help with JScrollPane because never used it before. Need to add a JScrollPane in my panel in order to can see new items that getting out of GUI edges. I have a JPanel that contains an ArrayList, that list contains moves that player making step by step. So, as my GUI it is I can see just the first 5-6 moves, the rest are not visible. Found some tutorials in the Internet, tried them but didn't do anything. Can anyone please help me with the right way? I need a vertical scroll bar inside a JPanel that contains an ArrayList.
Thank you
toto_7
I need help with JScrollPane because never used it before. Need to add a JScrollPane in my panel in order to can see new items that getting out of GUI edges. I have a JPanel that contains an ArrayList, that list contains moves that player making step by step. So, as my GUI it is I can see just the first 5-6 moves, the rest are not visible. Found some tutorials in the Internet, tried them but didn't do anything. Can anyone please help me with the right way? I need a vertical scroll bar inside a JPanel that contains an ArrayList.
Thank you
toto_7
"Programming is like **. One mistake and you have to support it for the rest of your life."
-Michael Sinz
#3
Posted 27 November 2011 - 03:12 PM
All I achieved were to put a scroll bar but was inactivated and didn't activate when moves getting out of GUI. No, no putting ArrayList in the ScrollPane. Put ScrollPane in JPanel that contains an ArrayList(JTextArea)
"Programming is like **. One mistake and you have to support it for the rest of your life."
-Michael Sinz
#4
Posted 27 November 2011 - 03:50 PM
I'm sorry but I am trying not to misunderstand you. Could you restate that a bit more clear.

#5
Posted 27 November 2011 - 03:57 PM
Sure, firstly please tell me, on which components you can add a scroll bar? All of them?
"Programming is like **. One mistake and you have to support it for the rest of your life."
-Michael Sinz
#6
Posted 27 November 2011 - 04:01 PM
I'm not sure of the exact list. But i have used them on Text areas before. The link in my earlier post has an example with a picture. You can view the java docs for the specifics.
#7
Posted 27 November 2011 - 04:11 PM
I have JTextArea too. I will check the link again..thanks fread
"Programming is like **. One mistake and you have to support it for the rest of your life."
-Michael Sinz
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download