All Questions
Tagged with jscrollpane scrollbar
83
questions
0
votes
1
answer
34
views
How do I adjust the width of a JScrollPane based on the width of JTable Data?
My Java program has a JTable in a JScrollPane. For the table I set setAutoResizeMode(JTable.AUTO_RESIZE_OFF) and I adjust the column widths to match the data using resizeColumnWidth (shown in many ...
-2
votes
1
answer
40
views
ScrollBar is added from scrach but not in the middle of work - java swing frame
I don't know where the problem is, when the sample code is run alone and from scratch, the scrollbars are displayed correctly, but when we try to add them to a task area in the middle of a prepared ...
0
votes
1
answer
48
views
Why does the JScrollPane show up but not its scroll bar? [duplicate]
Here is my code. The JScrollpanel shows up but now the scrollbar. I also can't use the scroll wheel if the text goes below the area.
JTextArea textArea = new JTextArea("Enter text here");
...
0
votes
0
answers
46
views
Jtable - resizing column moves scrollbar
title is quite explanatory.
i got JTable wider than screen so there is horizontal scrollbar.
when i start app and try to resize column (via grabing table header) and resize it its cooperating.
when i ...
0
votes
1
answer
56
views
Scroll Bar does not adjust to JPanel dimensions, Java JScrollPane
I am trying to get a scroll bar for a Panel that will get a big number of lines, however I am stuck whit this.
As you can see in my window (click here to open the picture), Scroll bars does not adjust ...
0
votes
1
answer
91
views
Adding a JTextarea to a JScrollPane. What to visible, the 1st or the 2nd?
I am making a form in Java and I want to visualize a text area with a scrollbar, the problem is that I change multiple times the .setVisible() value from true to false and vice versa and I don't know ...
0
votes
1
answer
34
views
Scrollbars based on the content of a jpanel
I have a jpanel that is 500x500 and acts as a canvas (draw all over it). Scrollbars kick in (as needed) at 510x510 on the panel (which it will never reach visually, but will surpass based on content) ...
1
vote
0
answers
330
views
How to prevent scroll bar from pushing content of ScrollPane in JavaFX?
I have growing content in ScrollPane. When content reaches bottom ages of ScrollPane, vertical scrollbar appears. At that time all content is being pushed to the left side by width of scrollbar. It's ...
0
votes
1
answer
252
views
My JScrollPane won't scroll vertically over my JPanel
I have a code where I have a lot of 'nested' layouts. Border, Flow, and in my main program I have a GridBag. I'm adding panels dynamically to one panel, and have it sized so that each element gets ...
0
votes
0
answers
122
views
how to make scroll bars to work on panel when panel size is greater than frame size
Image: unseen content still left and scroll bars wont work properly
i am creating many drop down lists(actual no of lists is determined at run time as value of some variable n) as shown into the pane ...
0
votes
4
answers
17k
views
How can I add ScrollBar to JTextArea in Java Swing?
Anyone help me how to add a scroll bar to a JTextArea with Swing in Java?
The JTextArea just disappear when I add the scroll bar on it.
Hope somebody get me add a vertical scrollbar on it.
...
0
votes
1
answer
54
views
Adding scroll bars with Java Swing into a JTextArea
I've seen several posts about this subject but I cannot solve the problem with the information provided there. I'm trying to add scroll bars (vertical and horizontal) with the following code into a ...
1
vote
1
answer
2k
views
JScrollPane not showing the scroll bars inside a JSplitPane
I have this piece of code that is basically a JFrame that contains a JSplitPane which contains on the left side a JScrollPane which contains a JPanel. I expected to see the scroll bars since the ...
1
vote
2
answers
178
views
Scrollbar doesn't work on a JScrollPanel inside a JPane
i am trying to code a JPane which has a JScrollPane where i want to add Panels in real time. I mean, I have some Components and one is a Button that adds another JPane to the main one (secundario) ...
0
votes
1
answer
226
views
JScrollPane in Java
I wrote a little code to see how the scroll Pane functions but my code never worked.
here's the code,
public Fenetre(){
this.setTitle("Data Simulator");
this.setSize(300, 300);
this....