Questions tagged as 'java'

1
answer

JOptionPane cancel button

In the following code, it asks for the name to be filled in, but if you do not type anything, and I click cancel it returns me a message (The name that you entered was Null). My question is how do I to click on cancel it directly close the ap...
asked by 27.09.2017 / 18:11
1
answer

An imageview receives an image according to the selected option

I wish you could enlighten me in one situation. I want to change the image of an ImageView. I can even do it through: final ImageView imageView = (ImageView) findViewById(R.id.imageChm); imageView.setImageResource(R.drawable.img1); However,...
asked by 27.09.2017 / 17:34
1
answer

Problems creating Child in Firebase

I'm trying to add dishes in my firebase database but I'm having some problems that I do not know until now why it does not work. and even gives this error: Process: meals.com.meals, PID: 1585 java.lang.RuntimeException: java.lang.reflect.Invoc...
asked by 11.10.2017 / 16:14
1
answer

How to implement an arraylist in a condition?

I need in this code to have a class Estudante , a Professor and a Disciplina . I'm trying to limit students in the Disciplina class to 50 with a ArrayList and a condition, but maybe they are in the wrong places o...
asked by 23.09.2017 / 16:48
1
answer

I can not put the servlet value in the JSP page

I am trying to validate the login and password of the user, in that if not enter the fields of login and password will appear a message in the screen "Please fill in the fields of login or password" or in case the user type the user or Incorrect...
asked by 22.09.2017 / 20:40
1
answer

Problem with the FirebaseApp call

I have a fragment that performs user registration and login using Firebase. However, I'm having trouble with the initializeApp (Context) method. Here is the code: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,...
asked by 22.09.2017 / 22:48
0
answers

How to invoke an event handling?

The idea is simple: I have an object of type Node and would like to invoke the handling of the KeyEvent event. The treatment is not me that I create, so I see no alternative but to make the invocation. I tried using the fireEvent ()...
asked by 07.10.2017 / 07:00
1
answer

Problems connecting Postgres with java [duplicate]

Well, I'm having a problem connecting to my java application with my database (I'm using pgAdmin4 which basically is postgres). Java code: public class ConnectionFactory { private static final String DRIVER = "org.postgressql.Driver"; pr...
asked by 06.10.2017 / 23:52
1
answer

Doubt about sum of information

I'm doing exercises on composite variables and I got stuck in my code, which at first I can not seem to solve even though it seems to be something simple. At the time of the result display, the student's notes are not being displayed individu...
asked by 01.10.2017 / 16:36
1
answer

Problem with binding in Spring MVC

I have the following field in the form <div class="form-group col-md-2"> <form:label path="horarioInicio">Horario inicio</form:label> <form:input id="horarioInicio" path="horarioInicio"...
asked by 01.10.2017 / 20:37