Questions tagged as 'java'

2
answers

Delete row from jTable with row id

I have a jTable I can delete the row without problem with the following function: int fila = tabla.getSelectedRow(); if (fila >= 0) { m.removeRow(fila); } With that I delete the selected row there is no proble...
asked by 02.09.2016 / 16:27
2
answers

Declare Variable Generic Type

I want that when you declare variable2 is the type of variable that you assign about <Pcambiar> In courses I saw it like that but I do not know what I'm wrong about class Hola <Pcambiar>{ public Hola(Pcambiar variable1)...
asked by 14.09.2016 / 15:35
1
answer

Problem with Local Date in java

Good the problem that I am having with localDate is the following one, it turns out that I am modeling a system of invoicing, for this system creates 2 classes that are invoice and items, but when wanting to create an invoice with the name of th...
asked by 13.12.2018 / 15:16
2
answers

Unfortunately the app stopped problem with imageview Android kit kat (API 19)

Good morning coders. I tell you what happens to me. I'm making an app for android, native, but when trying to insert an imageview (as indicated by the official documentation link api level 16) ... the app works on devices lollipop 5.0 and u...
asked by 21.12.2018 / 20:39
4
answers

Avoid quote (') when using INSERT in java

Good morning, I am encountering a problem when performing the INSERT command in java. One of the fields is the name of the game, and being in English there are some that include a quote ('), that is why if for example the name of the g...
asked by 27.02.2017 / 22:23
2
answers

Insert emojis in mysql 5.5

I want to insert texts that have emojis in a MySQL table. I saw that it takes 4 bytes for each emoji because they come in 2 hexadecimals. The issue that I have seen there are different "solutions" and none of them worked for me. Part of the e...
asked by 14.03.2016 / 16:04
3
answers

How to copy a file instead of moving?

I have an application made in Java, where I move files from one directory to another and organize them, the problem is that they are moved but not copied, another serious doubt, that if this file is copied, the attributes of the file, for exampl...
asked by 19.02.2016 / 00:31
2
answers

Error in execution time JAVA [closed]

I had recently shown a code that was failing, in the end I was able to solve it with the advice of the community and I want to thank you enough, but nevertheless I run into a problem now, the program pulls the error mentioned in the title at the...
asked by 31.01.2016 / 06:12
2
answers

How can I get the user's location every second?

I am developing an Android application where I want to get the location as quickly as possible (every second would be fine). For now I have added the Google Play Location services as I have seen in many tutorials and I get the correct locatio...
asked by 30.11.2018 / 18:52
1
answer

JAX-RS Overwrite method with same path

Currently I have a generic rest service, which receives all the calls and processes them according to the type of operation. Some of the calls would be: / user / 1 / v3 / people / user / 1 / v3 / machinery Then depending on whether t...
asked by 27.11.2018 / 10:02