I'm new to using GUI in java; I'm trying to change the Image Icon for my Project but I don't know why it's not working. I'm using IntelliJ for this, I ...
I'm new to using GUI in java; I'm trying to change the Image Icon for my Project but I don't know why it's not working. I'm using IntelliJ for this, I ...
I have a frame and want to set an icon for it. I use this code : JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setLayou ...
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 have the following package: projectname/src/main/java/net/is/lms/project/frames In the frame folder there is a java class called testframe and an ic ...
I made a "game" with an interface where you could guess a random number. You have to click a button to submit your guess and to get an answer from the ...
I have searched for an answer to this question in many places, but none of the answers satisfies what I really want. There are variations of the solut ...
I want to do a little lottery program for the school. You start with 500 credits, but every time you lose, 50 credits are deducted. My problem is that ...
I'm trying to create a chess game with java jframe and jpanel. I have done a method which allows you to move the pieces everywhere, but I don't know ...
Full image of my window The grey border of JFrame visible Problem: I want my application to run on full screen (maximized) by default (but the maxi ...
I'm trying to set an icon for a label like this: It's throwing the error: My project structure is like that: I'm trying to access this photo ...
I want to make a ProgressBar move gradually using a Jbutton. To achieve this I am using a for loop and the method Thread.sleep. The problem is that in ...
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 having trouble in understanding the difference between the paint and the paintComponent methods defined in the JPanel class. To put you in contex ...
I have this particular issue that have kept me from moving to the next phase of my project. I want to close a JFrame from my main class from another c ...
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'm trying to make a program that as the first step must login on site edostavka.by having phone and password. If I use "https://edostavka.by/login?sc ...
Hi guys, when I try to update a JLabel/JButton/JPanel using a action-started (ex. key-press) for-loop, it first updates the frame after the for loo ...
I want to fill a jbutton and all i find on the web is changing background and foreground colors, which is not what i am looking for. The setBackgro ...
I got a JFrame game as a school project, with a button, that leads to a second JFrame, which is the settings Frame. I now want my settings to apply to ...
I want all text files (Notepad) created during run time to be deleted every time I close the program. For example, while my program was running, file ...