Questions tagged as 'java'

1
answer

Change default behavior of p element: confirmDialog

I need to change the default behavior of the p: confirmDialog element. When you click yes, it must complete the request by passing a value and clicking on no, you must complete the request by passing another value. <p:commandButton value="C...
asked by 08.04.2016 / 14:45
1
answer

Unexpected result when triggering the same calculator button

I created a calculator by netbeans, which is working if only one operation is done. But if the user clicks on = (equal button) the result adds the first value entered. Example:  I typed 1 + 2  I pressed =  I get 3 But if I...
asked by 09.04.2016 / 14:19
1
answer

How do I populate a JTable?

I have a fairly simple java application that connects to a database, in the console I type the query I want to pass by parameter to the executeQuery. Now I need to pass all this to a graphical interface. Is there any way I can create just one wi...
asked by 10.06.2014 / 06:03
0
answers

Invalid characters from a MaskFormatter

So, guys, I have a window where I need to pass a validation of null fields of several JTextField and a JFormattedTextField , where the latter has a mask for phone numbers "(##)####-####" . The fact is that even though I do not...
asked by 26.04.2016 / 20:30
0
answers

Error connecting to SQLServer using JAVA JDBC

I'm using the sqlserver lib and my connection class is down here: public class conexao{ //sqlsever private static final String USUARIO2 = "usuario"; private static final String SENHA2 = "senha"; private static final String URL2 = "jdbc:...
asked by 26.04.2016 / 19:34
1
answer

Difference between Model class and Class generated in a Webservice

I'm having trouble generating a webservice. I have my Lib with the template classes: Address, City and Client. I also have a Lib with the DAO classes to control access to the data for the template classes: ADDRESS, ADDRESS, CityDAO. In the En...
asked by 26.04.2016 / 19:08
1
answer

Differences in build in jenkins?

I configured Jenkins to "build" a project from a git repository, I'm using maven:    Warning: JAVA_HOME environment variable is not set. Apache Maven 3.3.3   (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T08: 57: 37-03: 00)   Maven hom...
asked by 14.04.2016 / 16:57
0
answers

Applet asks for main method when executing, but does not have this method

I packed the project in a jar that is an applet and I want this applet to run here in the linux old firefox browser, however, it asks to select a main method, but the applet has no main method. How to make it run? packagexxx;importjava.apple...
asked by 14.04.2016 / 16:29
0
answers

I am having problems with my method of updating in the java application, it does not update in the bank

public Boolean alterar(Exemplo exemplor){ Boolean retorno = false; String qry = "update funcionario set nome = ?,rg = ?,orgaoExped = ?,dataExped = ?,dataDeNascimento = ?,email = ?,estadoCivil = ?,sexo = ?,cnh = ?,titulo = ?,"...
asked by 14.04.2016 / 20:32
0
answers

If I am going to create a J2EE application in Eclipse, should I download the JavaEE version?

What is the most appropriate version of Eclipse to work with J2EE?     
asked by 31.03.2016 / 15:18