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.

jscrollpane
0 votes
1 answer
44 views

Java Swing - I don't know why my JScrollPane wont scroll down

I have some issues making a JScrollPane scrolling in Swing. I don't know why it is doing that. It worked before when I just created a pane on top of the contentPane. But it is not working anymore now ...
Tristan Maisonneuve's user avatar
1 vote
0 answers
99 views

Zoom to Mouse Pointer using AffineTransform and JScrollPane

my goal is to implement an image viewer, where one can zoom to the mouse position and the JScrollPane correctly response to this zoom gesture. Also the possibility to roate the image would be nice. I'...
Displayname's user avatar
0 votes
0 answers
45 views

How to create a Scrolling Pane for a Chat System?

I've already created a working scrolling pane using JScrollPane, however, the current code works as follows: I type something into the chat input, press enter, it creates a JPanel and adds it to the ...
PokeCedGo's user avatar
0 votes
0 answers
20 views

adding Commonest to jPanel with gridLayout

so I am making a program to study and I want to see and edit the words that you upload in a Jscrollpane and I have a JPanel with gridlayout(0,2) in the Jscrollpane (with maximum height of 700) and ...
war030805's user avatar
1 vote
3 answers
74 views

adding a non-scrolling component to a JScrollPane

I'd like to add a non-scrolling element, always visible element (a "pinned" element) in a JScrollPane of a Swing GUI. Taking this example code: public class Main { public static void ...
ix0rai's user avatar
  • 49
0 votes
1 answer
55 views

JPanel.getHeight() doesn't exactly work as intended

So I have a program that utilizes JFrame and JPanel and such. I have multiple JPanels with JTextAreas within them, like a list. I'm trying to create JScrollPane that allows me to scroll through all ...
ThrillerGriller's user avatar
0 votes
0 answers
41 views

Placeholder image in JViewport of JScrollPane for empty JTable

I have a JTable and want my user to drag&drop entries into that JTable. To make that as obvious as possible, I want to display a placeholder image like "Please drag stuff HERE using your ...
MrSnrub's user avatar
  • 1,163
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 ...
Rob's user avatar
  • 19
1 vote
0 answers
31 views

Unable to add components on a new line in this JPanel

I'd like to create in Java Swing a file manager-alike interface, with icons spanning horizontally unless no more horizontal space is possible to allocate, and then going to a new line. This is my ...
Alessandro's user avatar
1 vote
1 answer
86 views

JList - Horizontal list, visible amount of values

I'm trying to create a horizontal JList with seven items inside a JScrollPane and only three of those items need to be visible and the others accessible via a scrollbar. Here's an example of what I'm ...
Obaraten64's user avatar
0 votes
1 answer
43 views

JScrollPane doest not act correctly when image is resized

I searched and found tons of questions here about my problem, but it seems I cannot implement correctly the solutions I found. I have a JScrollPane in which I put a custom JPanel. This custom JPanel ...
Stefano's user avatar
  • 13
0 votes
1 answer
57 views

How to add and remove scrollbars dynamically to a zoomable panel based on Rectangle's visibility

I am trying to manipulate some blue rectangles within a confined, much larger red rectangle. I have this working along with a zoom-in and zoom-out function The problem is I would like to display ...
Newbie Guest's user avatar
0 votes
1 answer
83 views

How do i wrap text of a single JLabel in JScrollPane instead of horizontal scrolling without using JTextArea

(to note im new to programming so this may be a simple answer or my code is just written wrong) I have a larger program with a string that is constantly being appended and trimmed. Its written with ...
tau's user avatar
  • 1
-1 votes
1 answer
48 views

JTable is only showing the first column of imported data. How do I show all columns?

I'm building a table of imported values from a csv sheet. I have 95 rows and 26 columns. I want to display all of the "dataS" values in my JTable, but I'm only getting the first column. Is ...
samcoder's user avatar
0 votes
1 answer
90 views

Why am I not getting scroll-bars with MigLayout manager?

I'm writing a desktop application. The environment is following: Java SE 10 Eclipse IDE Java Swing MigLayout The source-code, the important parts. textPane = new JTextPane(); textPane....
ucas's user avatar
  • 467

15 30 50 per page