All Questions
31 questions
1
vote
0
answers
53
views
Adding ZOrder to JLabels causes them to Flicker in Jframe
I am trying to make a 2D game using Java Swing, but I am running into some trouble. I added ZOrder to my JLabels because I wanted them to appear in a certain order, but it caused them to start ...
1
vote
1
answer
150
views
Flickering While Resizing Transparent JWindow
I'm trying to make a transparent window with Java Swing, and I have created the window. Problem is when I resize the window, it flickers. I tried changing the background to an opaque color instead. ...
-2
votes
1
answer
237
views
Swing Flickering
I've a problem with Swing , i'm trying to do a calendar and the date is displayed thanks to a JLabel that i've put in a JPanel and when I call the function setText to change the date displayed the ...
3
votes
1
answer
424
views
JFrame with a Transparent Background Flickers when using ComponentResizer
Problem: An undecorated JFrame with a transparent background flickers when using a ComponentResizer to resize it. As seen in the below video and MCVE, the problem does not occur with an opaque ...
0
votes
0
answers
96
views
How to stop my bubbles animation from flickering? Tried nearly everything
I'm in despair, because my animation isn't as smooth as I expected. So I know, there is a lot of stuff around this problem, but mine is different in that way, that I know the common problems and I ...
1
vote
3
answers
2k
views
Can't stop flickering on JPanel
I have class that creates a new thread.
`
public ScreenG(JPanel PanelR)
{
Panel = PanelR;
RenderImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);
FPS = 25;
Hide = false;...
0
votes
1
answer
582
views
Screen flickers when setting background
I'm trying to make a simple GUI program without using JComponents.
Currently, I have a BufferedImage that I draw to off screen so that it doesn't flicker (or so I thought).
I made a new program here ...
2
votes
0
answers
254
views
JPanel resize flickering [closed]
I draw a (co)sinusoid signal in the time domain using a JPanel and overriding its paintComponent(Graphics g).
When i do a resize my application starts flickering and appears a black background until ...
0
votes
0
answers
50
views
Preventing horizontal lines/half frames when repeatedly repainting a BufferedImage
I have a swing component that displays an animation. Frames of animation are computed on the fly (in a BufferedImage) and displayed at around 30fps.
The problem is that every now and then, it ...
1
vote
1
answer
383
views
Simple bufferedimage flickering when calling repaint
I'm trying to create a webcam view with openCV but when I repaint the saved image it flickers and the images look half gray sometimes.
import java.awt.Graphics;
import java.awt.image....
1
vote
2
answers
2k
views
Stop Applet from flickering
I've got a problem with my Applet game in Java. It's flickering a lot when I run it. I have tried double buffering, but it didn't help. Here is a short coded version that shows the flickering...
...
0
votes
0
answers
146
views
Java3D JApplet Flickering with Rotation and Translation
I'm making a game using java3D. It involves the view translating with the "wasd" keys and rotating with the mouse. However when I rotate and translate at the same time, the 3D shapes on the screen ...
4
votes
1
answer
576
views
Jtable with a custom layout is flickering when the user scrolls it
I have done a custom table that extends JTable. My custom table differs in the layout where it has a JPanel with a button at the bottom of the table. The panel shall always be at the bottom of the ...
0
votes
1
answer
510
views
Flickering painting using getGraphics
I'm doing a selection tool and I've come with these solutions, in the first using the JPanel getGraphics method I draw a oval wherever the mouse been dragged, in the second I override the ...
2
votes
1
answer
472
views
Java JLayeredPane contents flickering on refresh
I have a project in NetBeans that uses a layered pane to display overlapping panels by switching between them as necessary. When started, the program displays an intro animation on one of the panels (...