Have a problem making battleship game. I created 2 panels with game decks for player and opponent. enter image description here When i click on oppone ...
Have a problem making battleship game. I created 2 panels with game decks for player and opponent. enter image description here When i click on oppone ...
Im coding this math progam where the user buys and sells stocks and the table calculates the valuation based on price and amount of stocks the user ha ...
Hello I am writing a program for school and I am stuck on this problem where I try to get an arraylist from another class using a button, but when the ...
I have a button that on a gui that supposed to open a new gui and close the old one but as soon as I run the code it automatically opens the new gui w ...
I am building a GUI program in which specific code takes place when a certain condition is meant (JButton is pressed). I have a seperate class that co ...
I am creating a Java program to simulate Microsoft Paint in Windows 95. There is a color palette in the bottom. Clicking any color in the palette will ...
I am juste starting to code, and I am trying to write a program were I would need a button to change a value (alea) that would be used out of actionPe ...
I was learning about JRadiobuttons and I made three JRadioButtons in this particular program. The JRadioButtons were pizzaButton, burgerButton and hot ...
Using JSF 2 I understand I can call multiple actionListeners as such: However, I would like to call one actionListener and perform an update to the ...
I'm currently working on a program in Java(beginner) and I need some assistance getting my buttons to actually work in the GUI. I copied my code to th ...
I made a simple project in java where the ball bounces off the edges of the screen. When I changed the speed of the ball, it went through the edge of ...
This is the class to generate a random number The problem i have is whenever the random number and the user entry are the same I want the timer ...
Im a trying to do a basic calculator. At first i only had two buttons "+" and "-", when i pressed one of the two buttons the text is displayed. For th ...
I wrote a program that creates a sudoku board according to the difficulty level chosen by the user. There's a basic GUI using JFrame and JPanel. The b ...
Good morning, I'm a bit new to java, I'm trying to create a dynamically loaded graphical application, the application has a frame with a panel that ch ...
I am running into an issue where I have a working code that is able to display a rectangle in a Jpanel drawpanel given input parameters from Jtextfiel ...
I'm a little confused about where the best class is for ActionListener instances in a small Swing application. If I have a Controller, a MainFrame fo ...
I am currently developing a GUI in Java. I am trying to display a 2D rectangle in a Jpanel called drawpanel in this case. In order to do this, I have ...
I am quiet new to Java and I try to make a simple turn-based game just to gain some experience. I have encounter a problem which I cannot solve on my ...
A Controller creates a new JFrame with a button. Using the actionListener is getting the order correctly but the action is asked to perform after is n ...