I'm relatively new to OOP and learning. I'm stuck in figuring out how do I possibly change the contents of my pane. What I want to happen is If I cli ...
I'm relatively new to OOP and learning. I'm stuck in figuring out how do I possibly change the contents of my pane. What I want to happen is If I cli ...
I basically don't know how to forward the value I get from a Choice and use it in a equation later on. I'm building a calculator and I need to have a ...
I worked on a very simple map editor phase for a game in java. The goal is to put some islands with different shape on the map. But there is some cons ...
because of a project I want to how to set the value of a JFormatedTextField, in a Java Swing GUI, to an invalid String, before the user changes the va ...
So I'm playing around with java GUI. I'm doing a program that bounces a ball when it hits the end of the window. How do I go about updating the second ...
I'm trying to make something that looks like this: As you can see, I want the labels on opposite sides of each other on the same line in the same pa ...
i tried that to modify my button jb[10][10] but when i run all button have the same icon, i want that the button share all values of b the icon too ...
I have a fullscreen overlay with 3 different photos. I'm storing BufferedImage instances in ArrayList, and switch between photos using CardLayout list ...
I have a scrollable JPanel, with some number drawn through the "drawString" method. When I click the zoom in button, the repaint method is invoked and ...
I'm trying to add Labels to a awt panel from a thread, and I'm calling repaint from the thread, but the panel isn't updating, and only updates when I ...
I'm in need of help since i cant get my head around this problem. I want to ping ip's and if they are reacheable then the specific row should be green ...
When I tell awt/swing to draw a component at a given y that is smaller than the window height, that object renders on the bottom of the bottom border, ...
So, if I try to move the shape, it actually moves, but there is no motion animation. In order for the moved shape to be drawn, the application window ...
I just used Graphics2D to draw something on the BufferedImage. ...
Im trying to make a Login Gui where it searches a text file for the password and username and if it doesn't find any that match the input then they di ...
I'm trying to draw a SMiley Face that moves when the mouse is moved or dragged using AWT and Swing. I have tried to implement the MouseMotionListener ...
I am working on a project that has a GUI and tanks that move. While tanks move fine, I am not able to figure out how to move/rotate them individually. ...
Basically my GUI is like this: A frame that contains a free designed layout JPanel called mainPanel Inside mainPanel are two other panels: A) toolP ...
I'm trying to code a memory game and I had chosen every button with a specific color. I want to compare these two buttons. When the user clicks the ne ...