Questions tagged as 'jbutton'

0
answers

Swing integrated with JavaFX is possible?

I wanted to know if it is possible to call a JavaFX screen through a Swing Screen Button. The code for the JavaFX screen I want to call is the following: public class EditorHTML extends Application { public static void main(String[] args)...
asked by 23.03.2018 / 20:56
1
answer

JButton ActionPerformed does not open the Frame before ending all events

I have the following problem: When I click on the JButton I want to open a Waiting Frame that prompts the user to wait for a while and in the meantime the program will process the query methods that take some time. However, by clicking on Jbu...
asked by 22.02.2018 / 13:27
0
answers

How to use a thread that has died again?

I'm making an application that plays sound effects for an RPG game. The goal is for the application to be able to play multiple sounds simultaneously (a song together with an explosion effect, for example). Each time the user clicks on the bu...
asked by 21.12.2017 / 18:48
2
answers

how to push the button using code, using the same effect as when the user presses

I am doing the game for java and when starting the machine will give a random click drying on 4 buttons and then the user has to press the same as the machine, but I do not know how to make the machine push the button package gênius; import j...
asked by 18.05.2016 / 06:17
1
answer

I can not put image in a JButton [closed]

I tried to put the image but only gives NullPointerException , I already tried to create a folder called img inside the folder src and point there but without success too. I do not know what I might be doing wrong. The image...
asked by 30.10.2018 / 14:08
1
answer

How to change the color of a button?

I'm doing some experiments to get a better understanding of Netbeans IDE and I had this doubt about the color of a button. By right-clicking on any jButton and selecting Properties, I set the background item to green, for example, but only...
asked by 31.12.2017 / 15:45