Questions tagged as 'java'

1
answer

I need to save the result of this query in the resultSet [rsf] as I do it please!

String sql = "SELECT trainings.TRAINING_NAME AS capacitacion_nombre, area_members.area as area ," + "beneficted_area.TRAINING_MONTH as month , AVG(beneficted_area.TRAINING_SCORE) AS score" + "FROM " + "area...
asked by 10.05.2018 / 18:25
1
answer

Problems when inserting image from a Thread

I'm doing a simulation of a cinema and I'm trying to add an image to a JFrame from a Thread but the image does not appear in the window, this is the code I made import java.awt.Image; import javax.swing.ImageIcon; import javax.swing.JLabel;...
asked by 11.05.2018 / 19:15
1
answer

I want to know if two variables can be passed to a table of primefaces

I have a table of primefaces where I use a variable but I need to pass another variable. I would like to know if that can be done     
asked by 09.05.2018 / 17:37
1
answer

Error obtaining the date of the bd

My problem is this: I want that when I give a button I insert the date that I put it, or that when I modify the date and give it to the button I insert it but I've tried thousands of ways and it does not work. I put the code .. import j...
asked by 13.05.2018 / 13:40
0
answers

RadioGroup null RadioButton in alertdialog in restore preferences

I would like please if you can help me know what happens. I have a radiogroup built in an alertDialog. The problem is that it gives me different id to reconstruct the activity when I call the preferences file to restore the option that the user...
asked by 09.05.2018 / 02:32
1
answer

Question about selectOneMenu Primefaces java cascaded

Today I was developing a cascaded selectOneMenu, for that I followed the Primefaces documentation link That being the case, I implemented it in my code to make a cascade of these but in 4 levels: This is the locationBean.java: pa...
asked by 10.05.2018 / 04:04
0
answers

I have a problem with the connection to the database

I get an error that has nothing to do with the library jdbc when linking a login to a table but no syntax errors appear this is the code    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at Sistemas_Registro.Login.i...
asked by 10.05.2018 / 02:06
1
answer

Comparison with Equals

This code works well but I can not understand its operation, I did not know how to ask the question, because I do not have to solve anything just understand it. The code is taken from a class Point that has two attributes (x, y). @Override pub...
asked by 14.05.2018 / 18:38
0
answers

How to make my android library lower functional dependencies in the client project?

Well I want to tell you my problem. I made a library which is already in a maven repository and when I integrate the dependency of my library to an empty project, it is downloaded normally and integrated into the application, but there is a prob...
asked by 09.05.2018 / 14:45
0
answers

Sync my account with SyncAdapter

Do you know how to sync my account from my app from accountManager with syncadapter? I have performed the syncadapter service: public class SyncAdapterService extends Service { private static SyncAdapter sSyncAdapter = null; private stat...
asked by 09.05.2018 / 11:34