python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
JComponents arent displayed properly unless the window is minimized and reopened
I'm making a program in Java Swing and so far I only have the GUI done but that's what's giving me the problem. I have no idea why, but when my "tasks" method is activated using the button, ...
user17978829
Votes: 0
Answers: 1
Why does paint(Graphics g) work, while paintComponent(Graphics g) does not?
I am very much a noob when it comes to swing. So far, all of my knowledge comes from YouTube and Stack Overflow. I am trying to make an interactive 5x5 board, with a random image in every spot, and a ...
Sterling.wp
Votes: 0
Answers: 3
JPanel removing component and adding a new one offsets the new component
I am working on a solver to illustrate the Nelder Mead algorithm by generating a topographical map. The map is represented visually by a JPanel component (I know the map is not generating as cleanly a...

M_Dragon
Votes: 0
Answers: 1
Rotating game in JPanel
I created a very simple shooting game utilizing JPanel as shown in the code below. I also wanted to experiment with rotating the game and trying it out. I have one issue, where the game I was able to ...
user17286087
Votes: 0
Answers: 1