Questions tagged as 'java'

1
answer

How to put border on a selected item in the ListView?

How to put a border on a ListView item when the user selects that item in the android application?     
asked by 17.12.2015 / 19:27
2
answers

Reverse reading of files

My goal is to read a file (line by line), however, starting at the end of the file (last line) to the beginning (first line). Could anyone give you a possible idea of doing this? I was using RandomAcessFile with the intention of usi...
asked by 23.09.2015 / 13:55
1
answer

Error creating login screen with JavaFX

Good evening guys, I'm trying to implement a login screen with the following fields, but the other fields do not appear, the user field and password appear Forgot login Click here:
asked by 01.03.2016 / 01:03
2
answers

Retrieve the value of an attribute of a generic object in Java

I'm doing a system where I read Java objects, of different types, from XML files. So I do not have a single type of object and consequently I do not know its attributes or methods. I would like to perform a search, enter a string indicating attr...
asked by 26.02.2016 / 18:01
3
answers

Error in Hibernate

I'm trying to make a small interaction with the MySQL database but when I run the test class the following error appears:    Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.Mappings (Ljava / util / Map; Ljava / util...
asked by 05.01.2016 / 02:20
1
answer

Tomcat does not update files [closed]

The problem is this, every time I change a file ( index for example), restart tomcat(v7) and press F5 in the browser, it stays the same, does not update anything, ie ends up getting in version previous .... Does anyone know what...
asked by 24.12.2015 / 06:34
1
answer

Cloning an object (deep copy)

Good evening. I'm working on a program that writes a text. Basically it is composed of a Text object which is a list of Paragrafo objects, which is a list of Sentencas objects which is a list of Words objects that are a list of Strings. I'm t...
asked by 17.09.2015 / 00:30
1
answer

Spring @Scheduled with internal transaction triggering propagation error

I'm trying to run a service that relies on running cron with the @Scheduled annotation, but every time a database transaction needs to be opened within the method annotated with @Scheduled I get the error reported below: / p> @Service p...
asked by 15.09.2015 / 20:38
1
answer

Java - Chat async

I want to implement a java chat, which works asynchronously, and wanted to know the best architecture to do that. I was able to do a public chat using sockets (Netty), but I came up with the following problem: The server sends the message...
asked by 03.08.2015 / 00:18
2
answers

Convert a date and send to the bank

The code is all working, the problem is the date, I want to get the date of a jformatedtextfiel ## / ## / #### in the txt_data case and send it to the bank, I'm in the basics of java, I'm hooked on this code there are days and I researched a lot...
asked by 05.08.2015 / 17:37