Questions tagged as 'java-swing'

1
answer

Insert a "pointer" in an image of a map in Java from a Layout

I have to create an application in Java with graphical interface, which by clicking on a "Create signal" button which allows me to visualize in a JPanel the image of any map, and with the mouse to position several "Puntadores" "or" Points "on sa...
asked by 29.06.2016 / 23:50
1
answer

What the getValueAt (i, 0) method returns; if you can not find more cells in a jTable

I am comparing the contents of the cells of a jTable with a String specific, if it finds it proceeds to the corresponding action, but if it does not find it, what does it return? while(!(TabVentas.getValueAt(i, 0).toString().equa...
asked by 07.03.2016 / 20:53
2
answers

The JButtons do not occupy the full width of the JPanel with GridBagLayout, how do I solve it?

I have a problem that when I load the buttons with the SQLite data when adding them to the panel with a While traversing the DB, I do not add them to them in the form of a vertical list, nor does it expand them to the size of the JPanel. contain...
asked by 29.09.2018 / 03:23
1
answer

how I delete the keys and the equal {=} that the hasmap creates when I compile the code

when using collections in java I have this problem when compiling the code create me these keys and the sign of the same and inside add the code {=} as I delete those keys and that sign of the same HashMap valor = new HashMap(); valor...
asked by 12.07.2018 / 03:08
1
answer

Problem with CheckBox in JTable - Java

I want to solve a small problem that I have about a project in java and it is that I have a checkbox in a table but he only shows me the value true or false, I want him to show me his corresponding checkbox someone knows how I can solve it....
asked by 01.02.2018 / 16:46
1
answer

How to make a Java swing application expire after a certain time?

Good morning, it happens that I have my Java Swing application .... And I'm going to install them to several clients that want to know and try to know if they like it and decide to buy it ... But how can I make the application? start for a month...
asked by 02.02.2018 / 17:49
1
answer

Load a JList with data from an array

Hi, I have my class Gestor with the following code: Class gestor { private final String cadena = "jdbc:sqlserver://localhost:1433;databaseName=Persona"; public final String usuario = "mi_usuario"; public final...
asked by 23.08.2017 / 23:15
1
answer

Java: how to pause within actionPerformed

Good morning / afternoon / evening, lately I have had problems finding a solution for my problem what I try to do is pause a java program, this I used to do in C with sleep (milliseconds); and it worked as I wanted since the waiting time was d...
asked by 09.09.2017 / 05:47
1
answer

Virtual keyboard in a JFrame

Good friends I need help with a form that uses a virtual keyboard, this keyboard is in jPanel , at the moment I have only been able to program it so that the text is entered in a single jTextFIeld , I am looking for the way that t...
asked by 13.07.2017 / 09:30
1
answer

Java - Modify a JTable by means of an external Jframe

Hi, I have a question about a JTable . The program works by saving data of a product and then the list, but when wanting to modify by means of an external JFrame (that appears when pressing the EDIT button) I can not modify this data of the...
asked by 23.06.2017 / 11:14