Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [jscrollpane]

The tag jscrollpane could be used for questions about two topics: 1) a Java Swing component named JScrollPane, 2) a jQuery plugin. Please verify the companion tags to clarify the context of the question.

-2 votes
1 answer
344 views

Adding JScrollPane to a JFrame

I want to add JPanel containers to a JScrollPane and add this scroll pane to a JFrame. But when I add multiple panels to the scroll pane this happens. The gap between the scroll pane and the top bar ...
anonymJava123's user avatar
0 votes
1 answer
38 views

using a GridBagLayout, JScrollpane doesn't work (or look appropriate) with JList

I'm aware there are several questions with the same title, and I've tried their answers but to no avail. I'm getting the following result with my code: It does not scroll as it should, and there's ...
toxette's user avatar
  • 13
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 ...
user avatar
1 vote
2 answers
319 views

How do I add a scrollbar to a JFrame with setLayout(null)?

I have some components which I need to use setBounds() on, hence the reason why I'm using the setLayout(null). But some of my components are out the window(below the Y-axis). I was wondering if there ...
MindHunter's user avatar
0 votes
0 answers
467 views

Change the arrow button color of a JScrollPane's scrollbar

I have a JScrollPane containing a JTextArea. I know how to change the color of the thumb and the track of the ScrollPane's scrollbar but want to either change the color of the arrow buttons as well or ...
Luqus's user avatar
  • 119
0 votes
0 answers
46 views

Is there a way to draw a fixed rectangle on a JScrollPane? [duplicate]

I'm trying to draw a stationary rectangle on top of a JScrollPane. This would look similar to freezing the first row in Microsoft excel and scrolling down. I tried using a JLayer and LayerUI to ...
asdf's user avatar
  • 1
0 votes
0 answers
17 views

JScrollPane not showing in java [duplicate]

I have a textarea which will contain a lot of input lines, and i need a scroll. i don't know why isnt it showing, there are no errors. JFrame main_GUI = new JFrame(); //main frame JPanel body = ...
Pulse's user avatar
  • 57
0 votes
0 answers
57 views

Concurrency problem in updating Jtable/Jframes?

I will try to describe the problem as accurately as possible, since this is a legacy project from someone else that I am trying to fix (to the best of my abilities).I cannot build an accurate working ...
Pompompurin's user avatar
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....
mmrad's user avatar
  • 1
-1 votes
1 answer
40 views

How to make it so that when I put a dynamically resizable JPanel in a JScrollPane it works?

So I made a program where a JPanel's size are dynamically updated by the click of a button and the updated panel is added to a JScrollPane. But I can't quite figure out the error in this code. The ...
ItsSilver's user avatar
1 vote
1 answer
87 views

How to add gaps between components in Jscrollpane?

I am using JScrollpane and adding buttons on it dynamically. JScrollpane does not allow use of layouts. I want to increase space vertically and horizontally between buttons.
user avatar
0 votes
1 answer
42 views

Placing JPanels in JScrollpane

I am having trouble placing JPanels in JScrollPane one below the other. I have no succes even displaying panels inside JScrollPane, and when I do display them they get all jammed up together. Also the ...
Luka Lazarevic's user avatar
0 votes
0 answers
88 views

eclipse ide java not loading jpanels

so my problem is quite bizarre. So I am trying to write a java program in the eclipse ide. I have one JFrame and multiple JPanels added to it. You can navigate through the JPanels via buttons setting ...
jw-de's user avatar
  • 39
1 vote
1 answer
70 views

JScrollPane dynamic RowHeader out of sync when resizing

I want to implement a TextArea with a sidebar that shows the index of the leftmost character in each line of a wrapped text. This is implemented with a JScrollPane using RowHeader showing a JTextPane ...
user2011659's user avatar
0 votes
0 answers
227 views

Set JScrollPane's height relative to its parent container's height [duplicate]

I have a JScrollPane containing a JTable in a GridBagLayout. When I resize my JFrame containing the layout pane, the table resizes horizontally but not vertically. Even if I have GridBagConstraints....
Luqus's user avatar
  • 119

15 30 50 per page
1
3 4
5
6 7
181