Questions tagged as 'java-swing'

1
answer

The ifs do not work as I want. Sometimes they show the message correctly, but almost always show nothing [closed]

import java.util.Random; import javax.swing.JOptionPane; public class Video30_Adivina_numero { public static void main(String[] args) { int numeroRandom = (int) (Math.random()*100); JOptionPane.showMessageDialog(null, "\tBienveni...
asked by 21.12.2018 / 20:46
1
answer

How to make the program do nothing in a conditional

My question may sound strange, but I am putting together an easy videogame in Java, I am working with eclipse the graphical interfaces, and there is a part in that I have the following: I have a JTable where in each row I have data stored in a c...
asked by 21.07.2018 / 18:15
1
answer

Graphic environment in java [closed]

Somebody can help me I have to place a graphic environment AWT and swing ** that puts the numbers upside down ** example 12345 = 54321 import java.util.Scanner; public class InvertirNumero { private static Scanner sc; public sta...
asked by 11.12.2018 / 03:39
1
answer

doubt in Java Swing

How do I activate two buttons?  There are two forms, in one there is a button called "OPEN" in another form there is another button called "Regresar" How do I change classes?     
asked by 05.10.2018 / 15:41
1
answer

Disable the last JButton pressed by pressing another and so on

I'm creating a java interface with swing. The theme is the following, I have 9 Jbuttons and a textfield, every time I press a button, a different text appears, something simple. Well you see, I can not find the way to do that every time I press...
asked by 20.11.2018 / 22:58