Questions tagged as 'java-swing'

0
answers

Use Arraylist where you can store data How to link Jbutton to each Object of the Arraylist in an individual way?

You see guys I have some records in my BD which I then create a List of all these records placing them in an arraylist my question is: Creating a user interface with swing, how can you give an individual button to each object of that arraylis...
asked by 12.01.2018 / 03:51
1
answer

Form minesweeper board

Hello everyone and thanks in advance. I'm trying to do a very basic looking mines, but first I have to draw the "board" and I'm a bit stuck with that. I'm doing it with Java swing. With a Jframe and inside two Jpanel, one in which I enter the...
asked by 14.01.2018 / 23:59
2
answers

jTable does not name the columns

I have a jTable for a future pool that I want to make. The problem is that when I create the jTable, I open where it says model, I put the number of columns and the number of rows and I also put the name but in the jFrame only the jTable leaves...
asked by 06.01.2018 / 09:22
1
answer

Refresh JtextArea

Good morning, I have a java code that sends data to a JtextArea the problem is that when you re-run the method and send other data the new data is well displayed, but when you select them in the jtextArea it shows me the ones I sent by first tim...
asked by 07.01.2018 / 17:45
1
answer

Display elements of Jcombox to a Jtable

Best regards I have a jcombobox mat_codigo, mat_des, mat_preciovta I need to pass the values to a table as the description in column (1) and the price vta in the coulman (3) as it is in the image My code is the following:  public void Show...
asked by 23.12.2017 / 03:05
1
answer

how to put audio to a java program?

I have the following code to put audio to an application that I am developing, the problem is that it sends me the following error    Exception in thread "main" java.lang.NoClassDefFoundError:   org / apache / commons / logging / LogFactory a...
asked by 23.12.2017 / 01:54
1
answer

How can I store the characters entered in a JTextArea in a variable?

I am learning java and I have seen a problem in creating a login, I want to store the data that a user enters in a JTextArea in a variable, but it is not stored, and when I give a button that compares it with a name that I have put (since I stil...
asked by 20.12.2017 / 16:11
2
answers

GIF as wallpaper JFrame Java

I'm trying to place a GIF as wallpaper, the problem is that the GIF does not occupy the entire screen. How can I fix it so that the GIF occupies the whole screen so that even if the window size is changed, it keeps occupying everything?...
asked by 20.12.2017 / 17:28
1
answer

How can I create a popup or popup window in a java app?

Good afternoon. I'm doing a desktop app using the java swing library and I'm stuck with a popup problem. In my app, there are some checkboxes that when you mark them you have to appear a popup with several options to choose from, spinners,...
asked by 05.12.2017 / 13:59
1
answer

jtable of internal frame to jtable of a jframe

I need to know how I can make the data of jtable of an internal frame go to another jtable that is in jframe in java netbeans , I'm doing a project in this language and I'm new to this. This is part of the code: try...
asked by 24.11.2017 / 07:10