All Questions
Tagged with jscrollpane jscrollbar
148
questions
0
votes
1
answer
130
views
Java swing: Add scroll bar to textarea
I have a text area that updates a button press (this updating works fine). When it updates, a long list appears in the text area that requires a scroll bar. However, when I add the last two lines ...
0
votes
0
answers
53
views
How to make the default position of horizontal JScrollBar on the right?
I have a program I am working on, the horizontal scrollbar should be in the right-hand position by default, I tried to use Viewport() but it doesn't work. Any ideas?
jScrollPane4.getViewport()....
0
votes
0
answers
19
views
setting a JScrollBar in the middle [duplicate]
I have a JList inside a JFrame, if enough items are added to the JList it shows a vertical or horizontal ScrollBar. The problem I am facing is when the ScrollBars appear they start at value 0. I want ...
0
votes
0
answers
32
views
JScrollPane scrolllable list
I'm trying to set up a scroll bar for which you can always scroll. Here is what I have:
public static JScrollPane scrollList(){
JScrollPane scrollList = new JScrollPane(list);
scrollableList....
2
votes
2
answers
164
views
Change the background slowly while scrolling
I'm trying to create a small program, that I want to change the background slowly while scrolling the scrollbar (JScrollPane). It's like onscroll function in Javascript.
I created the scroll pane and ...
0
votes
0
answers
148
views
Java JScrollBar not scrolling all the way
So I have asked a previous question and this is a follow up to it, and I think it deserves its own question. I have this code where a JPanel of a certain size exists in a JScrollPane. The thing is, I ...
4
votes
1
answer
171
views
Add scroll-lock button to JScrollBar
Background
Looking to add a scroll-lock button to the corner of JScrollPane without obscuring the view port contents. The following image shows a JScrollPane wrapped in a SwingNode within a JavaFX ...
1
vote
0
answers
25
views
Issue with BasicScrollBarUI and LAF
I'm creating a program which has a Nimbus laf, in there i'm using a JScrollPane with a BasicScrollBarUI.
sp = new JScrollPane(lista);
sp.getVerticalScrollBar().setUI(new ...
1
vote
0
answers
57
views
Problems with JScrollBar in java
I am having a problem about JScrollBar.
In my application I have 2 panels (one fixed, and one that changes depending on what the user chooses in the menu)
In a given panel I have a JScrollPane with a ...
0
votes
1
answer
99
views
What's the correct way of using JScrollPane?
I have a JFrame in which I should display a list of 30 reviews. Each review is a custom panel named ReviewPanel, and I am using an absolute layout. Using this code, I would expect to be able to scroll ...
0
votes
1
answer
83
views
overlapping a scrollbar with panel "java"
when the mouse entered in scrollbar
automatically this scrollbar send to fond
example :
when the mouse entered in scrollbar
thanks and sorry for my english
0
votes
1
answer
515
views
How to add scrollbar automatic in jscrollpane?
I try to program a GUI like this. When a button clicked every time a new button is created and placed at specific position but after adding some buttons in jscrollpane, scrollbar not activated, so I ...
0
votes
1
answer
533
views
Remove Arrow buttons from JScrollBar in JScrollPane
JButton:
public class noButton extends JButton
{
//tried getPreferredSize() and getSize() too
@Override
public Dimension getMaximumSize()
{
...
0
votes
1
answer
656
views
scroll bar doesn't appear on JList
I'm using a GridBagLayout and have a JList of my custom class. The JList itself is shown as I expect, but the scroll bar doesn't appear. (My size of data is also larger than the size of my JList.) I ...
0
votes
1
answer
761
views
Hide ScrollBar of the JScrollPane when user not touching JScrollpane
This application is for a touch panel.
I just need the scrollbar of the JScrollPane visible only when the user touches the JScrollPane area.
I am new to GUI and swing. It will be helpful, what are ...