Skip to main content

All Questions

Tagged with
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 ...
asdadada's user avatar
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. ...
Coding Mason's user avatar
-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 ...
Soronne's user avatar
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 ...
MasterBlaster's user avatar
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 ...
Lukas Fink's user avatar
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;...
technik3k's user avatar
  • 158
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 ...
asdfaweglkelkr's user avatar
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 ...
belerico's user avatar
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 ...
Sideshow Bob's user avatar
  • 4,716
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....
Pauli's user avatar
  • 159
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... ...
Casper Lindberg's user avatar
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 ...
SuperSephyDragon's user avatar
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 ...
Rox's user avatar
  • 2,907
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 ...
bones.felipe's user avatar
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 (...
amitakartok's user avatar

15 30 50 per page