Questions tagged as 'java-swing'

1
answer

Open txt with java

I need to open a txt file but from the console but from an application that opens txt, in the event of the button you should open the txt as if you were opening from the operating system, I use GNU / linux (Debian) If something serves you sea...
asked by 26.11.2018 / 17:02
3
answers

Delete data from a table connected to BD with Java

Today I appeal to you in order to ask your help for the following problem. Result that I have a table in JAVA that is connected to a BD (Mysql). I want to delete a record of this table but when I try it it marks the following error " incompatibl...
asked by 04.11.2018 / 11:03
2
answers

Print a value of an ArrayList that is Inside an ArrayList - java

I have an ArrayList that stores certain objects, but one of them is an ArrayList, the question is the next one to show a Jtable the names of the people and the biggest sale that the problem has made is that the sales are saved in an Arraylist...
asked by 28.11.2018 / 07:11
0
answers

display an Object [] in a JList

I have a JFrame in which I placed a JList to visualize an arrangement, but the arrangement I get is an Object [] since I compile the code in matlab, but the result is processed in java, this is my code: private void jButtonOpenActionPerformed(...
asked by 07.05.2018 / 23:26
1
answer

Problem JButton JavaSwing

I had a question about the JButton component. To implement what I need, I use a variable number of buttons (All are equal in terms of features (button name, function etc)) and as all that is the same, I thought of implementing it as an array of...
asked by 08.05.2018 / 18:38
2
answers

how can I save the value of a JSpinner in a variable?

I need to save the value of a JSpinner that the user has chosen in a variable to be able to use it or be able to display it. the JSpinner goes from 1 to 10 and if the user chooses the number 5 I want to save that number to be able to use it...
asked by 22.05.2018 / 07:19
0
answers

Variable changes to unexpected value

I have a problem with a variable that is called contador . I declared it with a value of 0 but when running the program the variable contador has the value of 8. This is the only part of the code that uses the variable: public...
asked by 27.02.2018 / 19:45
0
answers

Java Program in Netbeans with swing [closed]

You can me because they can leave these errors or somewhere to give the program to find me the failure. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at transformador.Transformador.Transformar(Transformador.java:45)...
asked by 04.02.2018 / 19:10
0
answers

Create arrayList from list of people pasted in text box and pass it to JList [closed]

I am in NetBeans doing a Java lottery application in which the number of winners is entered (both incumbents and substitutes, in case the former can not receive the prize), the list of winners is loaded. names in the text box and it is drawn....
asked by 03.01.2018 / 20:45
1
answer

How to create Jpanel dynamically?

Good morning, please, I need help on this ... I have a Jframe that contains a jpanel inside ... my idea is that by means of a button arraylist that will be loaded when executing this jframe, they will be shown in the jpanel, but only 3 buttons ....
asked by 05.12.2017 / 07:38