Questions tagged as 'java'

1
answer

Fragment is not replacing the marked layout

I'm working on a college project and I'm having a hard time replacing a given layout with a fragment. What is happening is that the snippet is not replacing the layout with activity but rather, merging with it. This is the block of code...
asked by 31.03.2017 / 17:26
1
answer

How to maintain the aspect ratio of the screen after being resized by the user?

I need to restrict a certain proportion of a JFrame so that the layout of what I want to display on it is not distorted, but I would not want to have to block resize with setRezisable() . The minimum aspect ratio for testing is 350x500 (7:...
asked by 29.09.2017 / 13:06
1
answer

Trigger automatic email at certain time with java

My system has the part of dental consultations and I need to send email to the client, if your query is on that day. For example: Automatically trigger an email trigger at midnight every day. This email trigger will check if you have queries...
asked by 22.06.2017 / 00:43
0
answers

Dijkstra Algorithm

I'm trying to implement a maze, where you need to find a better way to get to the exit (without facing the wall). The labyrinth has already been implemented, the structure is almost ready (it runs through the entire labyrinth). But I would li...
asked by 17.06.2017 / 17:54
1
answer

Error building project with bilbioteca Commons-Email-1.4

In my project I needed to add the option to send emails I added the library commons-email-1.4 I wrote all the code and tested. So far everything is perfect however when cleaning and building the application .jar file, here is the error....
asked by 30.12.2016 / 13:29
1
answer

Webservice authentication mechanism SOAP Java

I'm building a Java webservice (wsdl) that will be consumed via SOAP. I need to implement a form of authentication in each webservice method so that every request is tested if the source is someone with permission. I tried to follow this tut...
asked by 11.01.2017 / 16:12
1
answer

How to load changes made to native java classes?

Hello , I'm trying to run a jar file, replacing some of the original java interfaces for connecting to the database, changing the setBoolean method to receive an object as a parameter. Original : void setBoolean(int parameterIndex, boo...
asked by 05.07.2017 / 22:56
2
answers

How to create a timer in JavaFX using scene builder?

Galera, I've been struggling for some months because of not getting a label to keep updating constantly. I can do a timer, but when it comes to the interface created by scene builder , it hangs because I could not update the label...
asked by 10.01.2017 / 15:22
1
answer

Better EntityManager definition

I'm studying JPA together with Dependency Injection and read a few points about EntityManager : If we use the following method: public EntityManager getEntityManager() { EntityManagerFactory factory = Persistence.createEntityManagerFa...
asked by 28.12.2016 / 18:22
0
answers

Google Login does not work after posting to the Play Store

My code is all right. When I use the application from an emulator, or generating APK and installing on the devices the login with google account is done perfectly. The problem came up when I was posting on the playstore, suddenly my login with g...
asked by 08.12.2016 / 05:29