Problem I have a simple game that implements a TimerTask. However, when there’s a popup using JOptionPane the timer task […]
Tag: swing
Swing / Terminal console drop-in
Problem How could this be improved style-wise (if this isn’t good enough) when the need is just to have a […]
Java Calculator with GUI
Problem I’ve wrote a calculator in Java with a GUI using swing. Here are the classes: Control.java: public class Control […]
Java Dice Roller with GUI
Problem Three days ago I wrote about a Java Dice Roller I wrote. I’ve now added a GUI to that […]
Timer in Java with GUI
Problem I have created a timer with GUI in Java. Here’s the code: import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import […]
Tic Tac Toe in Swing
Problem This is a Tic Tac Toe game I wrote in Java (Swing). It fully works when detecting the winner […]
Macroing program with Java
Problem When you press CTRL you activate the “Register” mode. In this mode, when you click, the program stores the […]
“I’m Listening”
Problem For this next assignment, my job was to create a GUI with a button that changes text and color […]
Separating Cats and Dogs
Problem I’m writing an animal shelter program, which keeps a database of different classes of animals (dog, cat, monkey). Functions […]
Paint rectangles to canvas using mouse
Problem Just wanted to post this here to see if anyone has any critiques of my code, if I’m drawing […]