All Questions
Tagged with jscrollpane image
37
questions
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 ...
0
votes
0
answers
46
views
Image doesn't load inside of JScrollPane
I was developing a Swing App where I have a menu with different options, based on which the App show an image, which is contain into a JScrollPane of another JPanel.
Finally when yo make double click ...
0
votes
1
answer
75
views
Laggy window when displaying images for the first time with JScrollPane
I am trying to display a bunch of ImagePanels in a JScrollPane. The problem with this application is that every time a new row of panels enters the viewport the whole window freezes for a small amount ...
1
vote
1
answer
208
views
Wrong size with JScrollPane containing updated image
I am coding a GUI containing a JScrollPane that displays an image that gets updated (with potential modification of its dimensions). The image is in an ImageIcon in a JLabel. The image size is ...
1
vote
1
answer
164
views
Displaying multiple Images in scrollPane results in components missing based on image size
I am using the following construct to display up to 3 images on labels based on need:
TabbedPane
|_ScrollPane
|_Panel with BorderLayout
|_Label with ImageIcon (Placed North)
|_Label with ...
0
votes
0
answers
93
views
JScrollpane lag with image gallery
i'm doing a gallery with some images (jpanels) into a other jpanel on a jScrollPane but on the scroll is too slow. i have a problem with the repaint of the jpane photos?
@Override protected void ...
2
votes
0
answers
88
views
Java Image Bulk Rotation
I want your help to implement the following program I am a beginner in Java and I want to make a simple project in order to improve my skills but I need some hints from Java professionals.
The program ...
0
votes
1
answer
73
views
How can I return the correct x and y coordinate in relation to an image after scrolling? [duplicate]
Edit: I ended up using the following code on my image panel, rather than my scroll panel
addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
...
4
votes
1
answer
2k
views
Image as a background in JScrollPane
How to add an image as a background in JScrollPane?
I tried this but the image doesn't display:
BufferedImage img = null;
try {
img = ImageIO.read(new File("C:\\Users\\Suraj\\Documents\\...
0
votes
0
answers
114
views
jscrollpane slow with inital viewing of complex image
I am having problems with scrolling on a JScrollPane.
I have a list of images in a JList which I am placing on a JScrollPane. The list can be very long, sometimes hundreds or thousands of images. ...
1
vote
1
answer
58
views
Editind image (JLabel) inside JScrollPane
I am developing an image editor capable of drawing ovals on an image. I am able to successfully add an image into a JScrollPane and draw on it using the fillOval() function. But each and every time I ...
1
vote
1
answer
361
views
How do I capture the contents of a Scrollpane using graphics
I'm trying to create a buffered image from the contents of a JScrollpane. The Jscrollpane dimesions are 250x200. The contents spillover and only the visible section gets captured in the image. I'm ...
2
votes
2
answers
635
views
Go to the last scrolled position java swing JScrollPane
I have a JScrollPane where I am displaying an Image. The relevant lines of code is
ImageIcon ii = new ImageIcon(in);
scrollPane.setViewportView(new JLabel(ii));
This code is called when a button ...
0
votes
1
answer
406
views
web picture is cropped in jframe
The picture from a camera (accesible trhough direct IP address like "http://1111.11.11.1")
is croped ti fit my max screen size. I added a scrollbar, but it doesn't seem to have an affect. Maybe i need ...
1
vote
2
answers
4k
views
Load image to JScrollPane
I'm trying to create a simple map that will create a circle on a certain coordinate. I want to use an image with it's fixed size as the map and add it to a JScrollPane. My problem here is that I dont ...