Questions tagged as 'java'

1
answer

Data disappear when scrolling scroll RecyclerView with Firebase

Hi everyone, I am creating a chat with Firebase and listing with RecyclerView, to list the messages but I have a problem is that when moving or scrolling the RecyclerView some messages disappear, please help me solve this! Here is my code and...
asked by 17.11.2017 / 13:50
1
answer

jsonarray adding and overwriting

I am creating a game and I am in the part of creating monsters and I need a json file to save the monsters but when I create a new monsters it writes on top of what already exists as I can only add a new monster. Code: import org.json.*; im...
asked by 01.12.2017 / 15:32
1
answer

OneToOne returning wrong value

Please help me please, I have a problem here and I'm banging my head to resolve this for hours. I use Spring in the project and I have the following relationship in one of my models: @OneToOne() @JoinColumn(name = "ITE_COD_INTERNO") @NotFound(...
asked by 24.11.2017 / 13:36
1
answer

WildFly 11 does not recognize MySQL driver when deploying

I set up my Java Web project to use JTA when transacting with the Database. My project has 4 Maven modules, one is unique to the model classes and to the persistence layer. When I compile in Maven the result is success, but when trying to upload...
asked by 09.02.2018 / 03:07
1
answer

Expanding SQLite Android Database

I need to export my SQLite database to a folder on the device on which it will be installed, and every time I open the application, the .db file be updated so that at the end of the month I can convert it to Excel. I just need to find this f...
asked by 27.02.2018 / 20:56
1
answer

Error converting XML to Object using XStream

I simulated the same error in a smaller project as it is in my original project to make the problem clearer. Follow the code and error log. XmlConverter import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriv...
asked by 16.11.2018 / 14:00
3
answers

Return DB data using List / ArrayList - Java

I'm having a problem, I set up a PivotTable in PostgreSQL and I need to print the lines of it, doing a Java method, the start of which is already established. That would be with a simple% w / o having as a parameter the start and end dates. H...
asked by 08.02.2018 / 19:02
1
answer

Change themes through Java

Hello! I have a code in java where I would like to change the themes of AndroidManifest according to the return of a certain function. Example: Having a boolean function that checks the internet connection, the activity will use one theme whe...
asked by 29.12.2017 / 20:04
1
answer

How do I define the size and location of components?

I created this code in java to train a little and learn but I can not set where JComboBox and JTextField will appear and the size of them like I do? I want to leave them in the middle of the window without being glued to the edge o...
asked by 21.10.2017 / 19:29
1
answer

Window size in Java

When I open the project in JavaFX on Windows OS, it opens correctly, but when I open the same project in the Mac Retina, it opens with another dimension, the windows are all misaligned and I have to fix it in my hand. Is there any way to fix t...
asked by 18.10.2017 / 21:22