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.
jscrollpane
2,712
questions
2
votes
1
answer
40
views
JScrollBar Layout Manager and SpringLayout Manager not working together
public void createSpringLayout(SpringLayout spring, JLabel label, JScrollPane scrollPane, JPanel buttonPanel) {
spring.putConstraint(SpringLayout.NORTH, label, 10, SpringLayout.NORTH, this);
...
1
vote
2
answers
151
views
Java Swing trying to add a stationary JButton over a JScrollPane
I am trying to make a text editor with a button that appears at the bottom right of the editor regardless if you scroll up or down and appears over the text area
import javax.swing.*;
import java.awt.*...
0
votes
1
answer
39
views
JScrollPane for arbitrary buttons
At this site I have found a good example how to apply JScrollPane for a matrix of JButtons. The code is here below provided.
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame....
0
votes
1
answer
215
views
Swing - remove extra space from JScrollPane so that it only fits the table rows
I am a newbie to swing. I have created a table from an array list of objects. I want to know how I can remove the access white space from bellow the table- that is adjust the size of the JScrollPane ...
-1
votes
2
answers
38
views
My code is not working. How should I add a JScrollPane on a JTextArea that is in a JTabbedPane? [duplicate]
this is the code I have so far
public class WindowHelpGui extends JFrame{
JScrollPane scroll;
//constructor
public WindowHelpGui(){
//add window title
super("Help&...
-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 ...
-1
votes
1
answer
48
views
Making a scrolling JPanel with JButtons and adding it to JScrollPane [duplicate]
I'm trying to make an array of buttons go inside of a JPanel. From there, I want the JPanel to be added to a JScrollPane so if there are more buttons that are needed, I will be able to scroll through ...
-1
votes
1
answer
86
views
JScrollPane not scrolling in JTextArea and is staying disabled
I am trying to make a simple text editor using JTextArea, but when I type more text so that it goes off the screen, the JScrollPane is still not enabled and not letting me to scroll. I've looked for ...
1
vote
1
answer
37
views
Reliable object not resizing java JScrollPane
I'm trying to make a file view(JScrollPane) resizable for an ide, but when I try to resize it, It wont update unless I resize the window.
I try looking it up but I could not find anything usefull.
If ...
-1
votes
2
answers
205
views
How to check for multiple keys at once using keyTyped(event e)
I have the following code:
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax....
0
votes
3
answers
112
views
Horizontal JScrollPane inside vertical JScrollPane
Good afternoon! It is necessary to make a list (vertical) from lists of events (horizontal). There are at least 2 problems:
the area of the list of events (horizontal scrolling) expands beyond the ...
-1
votes
1
answer
59
views
Java Swing - JFrame GUI Elements made invisble on resize and open
I have a secondary JFrame for a settings panel, however, whenever it is opened or resized all elements inside it (a lot of textfields, sliders and so forth) go invisible.
I can get the GUI elements ...
0
votes
1
answer
190
views
Why is my scrolling textarea in java not scrolling?
I have a frame f, panel Fpanel. and textarea j.
This is a part of my code.
The scroll does not seem to be working on my text area.
JTextArea j=new JTextArea();
j....
0
votes
1
answer
187
views
How to individually set the width of a row on a table/scrollpane
i have a DefaultTableModel:
DefaultTableModel model = new DefaultTableModel(data, beschriftung)
{
// Returning the Class of each column will allow different
// ...
0
votes
0
answers
40
views
How do I add a JScrollPane to this JPanel?
I am making a chatbot using a Java GUI template and everything works fine it's just that I am unable to add a JScrollPane to a JPanel that was created in a customizer class. I want the panel to have a ...