Questions tagged as 'java'

2
answers

slideToggle hides multiple divs when to hide / display only one at a time

I have several records in PHP, and when I click on a link "More information" opens a <div> hidden, but clicking this link opens the <div> hidden from all records. My Javascript code is as follows: function abre...
asked by 18.06.2015 / 20:13
1
answer

How to handle request header with Filter

How to change, remove, or add header of a request to a Web application using Filter ?     
asked by 20.06.2015 / 17:56
1
answer

Ways to get bank values with ResultSet

Ways to get Java database values (JDBC). public static Connection getConnection(){ /* 1. Faz a conexao com a base de dados */ /* 2. Retorna qual banco ira trabalhar */ Connection connection=null; try {...
asked by 20.06.2015 / 00:47
1
answer

Error in the monetary mask, saved with the correct digits but at the time of display are missing 2 digits

Colleagues!WhenIsavetheproductitgetsthecorrectdigitsasinthescreenabove.However,whenIentertheproductlistandclickontheScissorsproductitopensintheregistrationscreenwithtwodigitsmissingasinthescreenbelow.Anyonehaveanysuggestions?Iasktobeasspecifica...
asked by 09.01.2016 / 16:53
1
answer

Copy, Paste and Cut an Array of integers in java using Clipboard?

Personal greetings, I was trying to do the Copy, Paste and Cut using an Array of integers in Java, but I found a lot of difficulty and little material (mainly in Portuguese).     
asked by 12.01.2016 / 04:17
1
answer

How to get the name of the remote user connected to the server with java?

I have a problem that I do not know if it is possible to solve, I am developing an intranet system and I need to get the local user name (ie pc client). I tried to use System.getenv("username") , which returned the username of the serve...
asked by 02.03.2016 / 22:16
1
answer

Class to generate CPF does not print in the console

I can not print the generated CPFs on the console. I am studying this code and I do not understand the problem, can anyone help me to understand and learn to use this code, please? package geraCPF; import java.util.ArrayList; import javax...
asked by 14.01.2016 / 15:33
2
answers

How to leave an AlertDialog with rounded edges?

When I want to make a% custom_comment I just put a layout inside it. But around%% is square, does anyone know how to round it?     
asked by 07.03.2016 / 19:08
1
answer

What does the equals (Object o) mean in this method?

In this code: public boolean equals(Object o) { Aluno outro = (Aluno)o; return this.nome.equals(outro); } What is it for?     
asked by 19.02.2016 / 20:02
1
answer

How to recognize MySQL instances using Java and allow the user to choose the database?

I'm developing a project that is required to be able to access different banks from MySQL that are allocated on machines as well as on servers. In order to allow the selection of a bank by the user that will execute the routines in t...
asked by 11.04.2014 / 21:05