Skip to main content

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
1 vote
2 answers
66 views

Java JSCrollPane won't resize below minimum size of JButton with text

I'm trying put a JPanel (GridLayout 0, 1) with JButtons it, within the ViewPort of a JScrollPane. This is easy enough to do, but it doesn't behave "properly" when resizing the parent JFrame....
George Minkov's user avatar
0 votes
2 answers
63 views

Component not visible after using "setVisible(true)" on it and its parent

I've got a Java 8 app with a couple of JTextFields and a JButton to log into a database and a JTextArea inside a JScrollPane to display errors. Both the textarea and the scrollpane have to be hidden (...
Neph's user avatar
  • 1,933
0 votes
1 answer
60 views

Java/Swing: Can't get JScrollPane to show entire element

The goal is to draw a bunch of circles (each a separate JComponent instance) onto a JPanel, and to be able to scroll far enough in any direction to see all of them. Here is the "main" code: ...
Dilara's user avatar
  • 1
0 votes
2 answers
69 views

Create a list of JCheckBoxes and put them into a JScollPane (UR Robot - URCap)

It has been a while since I programmed with Java Swing, so I'm not an expert with all it's methods. Just to contextualize what I'm doing, I'm building an URCap UI that I'm using in a UR Cobot (That's ...
Searcher's user avatar
0 votes
1 answer
23 views

Java/Swing: How to combine both - fixed size and ability to scroll - for JScrollPane including JTextArea

So I have created a JTextArea (in my case TextArea - to override append and setText methods that include line breaks), to visualise end user what is going on at what time. I have: limited space ...
Traqu's user avatar
  • 13
0 votes
1 answer
24 views

How to put image in a scroll pane in the upper left

I am displaying an image in a scroll pane and it works great when the pane is smaller than the image. When the pane is larger then the image, the image is centered vertically and left justified ...
AlexHomeBrew's user avatar
0 votes
0 answers
33 views

How to make a FlowLayout JPanel nested inside a ScrollPanel go down the next row when reaching a fixed width [duplicate]

I have a JPanel with a FlowLayout inside of a viewPort of a JScrollPane. I can add components dinamically to this JPanel but when I reach the end of the JScrollPane what i want is for the components ...
VAndrew009's user avatar
0 votes
0 answers
47 views

Zoom to Point with JScrollPane

I found a few questions similar to the one I have, including this and this, but none that really answered the problem, and it's because I am using a JScrollPane. I found the code necessary for the ...
The Dog on the Log's user avatar
-2 votes
1 answer
54 views

Jscrollpane isn't scrolling

Here's the code I have for my GUI public class gui extends JFrame{ JFrame mainF; JPanel listPanel; JTextArea jtArea; ButtonGroup buttons; ButtonGroup restoreButtons; JRadioButton createButton; ...
user avatar
0 votes
1 answer
58 views

JScrollPane with GridLayout Panel

I have a JFrame (frame) with a JScrollPane. The JScrollPane contains my ContainerJComponent (DebugPanel). This ContainerJComponent contains JComponentItems (DebugItem). This is an abstracted problem ...
hinrich.'s user avatar
0 votes
1 answer
42 views

Remove MouseWheelEvent/MouseWheelListener awaiting execution in Java Swing

I have an implementation where I want to reload data while scrolling a JList after scrolling every 100 records. I have a large database, and it takes around 7 seconds to load the JList. Therefore, a ...
slow_learner's user avatar
0 votes
0 answers
38 views

How to implement temporarily disabling AdjustmentListener of JScrollPane in Java Swing

I have a code to load data when scroll is performed. Suppose I scroll, the loadData method is called and is in progress. If during this time I keep scrolling, even though the scrollbar is not moving ...
slow_learner's user avatar
0 votes
1 answer
159 views

Why are there these weird visual artifacts when scrolling my BufferedImage? And how do I prevent them from happening?

I am creating an application that involves drawing a BufferedImage to a JComponent using Graphics2D in a paintComponent(Graphics) method. I added the ability to zoom in and out of the image. The ...
davidalayachew's user avatar
1 vote
0 answers
40 views

Why does Document.insertString() auto-scroll with getLength()?

I noticed some interesting behavior with JScrollPane when manipulating the underlying document in a JTextPane. Consider this example: public class Example { public static void main(String[] args) ...
Cardinal System's user avatar
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

15 30 50 per page
1
2 3 4 5
181