Questions tagged as 'java-swing'

1
answer

How can I fill several JTexField with the contents of an ArrayList?

The specific doubt is that you create JRadioButton in a dynamic way, that is, depending on the amount that exists in an ArrayList. From the FileManager class the user information is brought and it is required to show in its respective JTextField...
asked by 20.05.2017 / 21:19
1
answer

SQL Error BLOB Syntax

I am using XAMPP MySQL and I have created a table to which I have named users and within it created the following: userid: INT type PRYMARY KEY AUTO_INCREMENT name: of type VARCHAR (20) photo: BLOB type When I try to save the photo in...
asked by 30.05.2017 / 02:45
1
answer

The mouseclicked event for menu item does not work for me

The event mouseclicked for menu item in swing does not work for me. I changed it to mousepressed and it works for me ... it's practically the same, but I wanted to know why this does not work in a menu item. EDITED: the code was...
asked by 19.02.2017 / 04:13
1
answer

Fill a figure in Java

How can I fill in the figure I draw in java when I made the figure with only g.drawLine? import java.awt.*; import javax.swing.*; class Corazon extends Frame{ public static void main(String[]args) { Corazon p=new Corazon();...
asked by 07.02.2017 / 23:24
1
answer

Connect a JTable object with a Collection object

I have a public Collection<Suppliers> getAllSuppliers() method which obviously returns the data from the suppliers table. In the client part swing I try to show in a JFrame an object JTable containing...
asked by 29.11.2016 / 12:01
1
answer

Lenar a JTable with JPA

I'm new to this JPA and I know almost nothing about it, although I've researched a bit, I still can not find a way to fill the table with the Entity , the code with which I do a DefaultTableModel and try to fill the table with this...
asked by 20.10.2016 / 22:14
1
answer

Modify ArrayList object in a JTable [closed]

I have a Table and I fill it with objects from an ArrayList I want to know how I can modify the data that was already saved in the ArrayList and that the table presents them     
asked by 13.06.2016 / 00:53
2
answers

Save image in variable

I have this code to add an image to JLabel : public void Cargar_Imagen() { File fichero; int resultado; VentanaImg_Contacto vi= new VentanaImg_Contacto(); FileNameExtensionFilter filtro= new FileNameExte...
asked by 10.06.2016 / 18:12
1
answer

JTable to block the modification of Java cells

I would like to know how to block the modification of the cells.     
asked by 11.11.2016 / 19:23
0
answers

Because my jframe calendar does not work

I just did a very easy and simple job: place a calendar in a Jframe. When executing it in netbeans my form jframe shows the perfect calendar and does not show any error. But when I turned it into executable that is to say to have it portable on...
asked by 01.01.2019 / 22:02