I'm trying to add an image to JButton so there will be some kind of icon. And I'm not sure where is my mistake. When I run the following code, there i ...
I'm trying to add an image to JButton so there will be some kind of icon. And I'm not sure where is my mistake. When I run the following code, there i ...
my jbuttons are in an asymmetrical row. i want them to be in 2 symmetrical rows at the top because i think that would look better. how would i do this ...
I want to put a Jbutton on a Jbutton i.e The JButton is setEnabledFalse and have a DisabledIcon and has another button on top (in the link it is b ...
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 ...
Im using Netbeans, and Im making an app. The thing is that you can register or login into the app, so I want to make a condition in case you are logge ...
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'm programming a calendar for only one year in NetBeans and for the GUI I plan to have the typical calendar a spinner for the year. This combination ...
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 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'm trying to learn swing and work through the task we have been given. I can't see why the code doesn't display the JButtons in the SOUTH section as ...
how can i change the button color(for highlight it) after i press my keyboard keys? like the label said "Type some text using your keyboard.The keys y ...
I can see the button and when I get rid of the button, I can see the JLabelI'm using the Eclipse IDE and I'm trying to have a JLabel display over a JB ...
I want to make a JButton that lies on the NorthPane of the frame, but when I run the program there's no button. Why does it do that? I'm using Intelli ...
So, I have seen many similar questions but they are all a bit different and don't seem to fit my problem. So, I have a "Main" class, a "Panel" class ...
I have the following code: Which generates the following form: Buttons 1 to 4 (AWT buttons) resize together with the window. But button 5 (Swing ...
When I click background selector on my main panel, it takes a while to load the JPanel and I wanted to show a loading JLabel whilst the background sel ...
i dont know how to properly change the size and position of a button in a panel how do i do it? I used setSize for button1 didnt work I used setBound ...
so i am using intellij and am trying to make a jbutton with text. it works fine without the text but when i put the text on it takes up the whole jfra ...
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 ...