Questions tagged as 'java'

1
answer

Error in this loop of repetition. It is only getting the first value from the database

Error in this loopback. It is only getting the first value from the database. You are only doing the query in the first field and you are ignoring the others. @Controller // @RequestMapping("/login") public class LoginController extends HttpSe...
asked by 22.07.2016 / 04:42
1
answer

Leave only one column of the editable JTable

I have my data model that I did for testing as the code below shows: public class ModeloDados { private String nome; private String sobreNome; private String telefone; public ModeloDados(String nome, String sN, String fn){...
asked by 21.07.2016 / 15:00
1
answer

Error trying to sum all through a class in Java

I'm doing a small project on expense control, and I'm having a problem calculating total expenses. I'm having a class called Expense which is an abstract class, and other classes called Transport , Food and Daily will inherit from it the...
asked by 12.04.2016 / 07:40
1
answer

How to do a regular expression to validate JSF password

I need a regular expression to validate password as below: The password must be in the default: ipe @ 1234 (letters, special characters and numbers) I'm using this below, but it does not validate the error: <p:password id="passwordInp...
asked by 12.04.2016 / 15:25
1
answer

How to add values from JSpinners?

I want to make a simple program where the user puts a number in JSpinner and, when clicking a button, it will appear in another JSpinner , the value of the first added by 2. However, I can not make the sum between the value indicat...
asked by 23.06.2016 / 14:34
1
answer

Java Connection mySQL JDBC

I have a problem following this class video : I seem to follow what he says to do but the line goes red and with errors: con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/videoAulaJDBC", "root", ""); The error that happens are...
asked by 22.06.2016 / 17:03
1
answer

Acquisition of data by JTable

I'm trying to get JButtonGuardar(panelInserir) to pass data entered by the user (local time text) from JPanelInserir to JPanelEventos (where is JTable) At the moment, I am not succeeding, if you have any suggestions, I wi...
asked by 21.04.2016 / 02:11
2
answers

JFormattedTextField is not accepting any characters

I have a window where we have a JFomattedTextField called txtQuantia , I applied a mask to it called mskQuantia , and set the valid characters, in this case 0-9, but this field is not accepting any characters. What can it be?...
asked by 22.06.2016 / 20:32
1
answer

Run an application without eclipse but using tomcat. How do I do?

I'm used to running the project in eclipse ide but now I've created a html page in notepad ++ and need to put that page to run with the web server tomcat I'm not getting to do. I was giving two clicks on my html page but the url is wrong, it...
asked by 20.04.2016 / 15:09
1
answer

How can I turn a bootstrap template (html, css, javasript) into .Zul (Views of Zk framework) [closed]

I'm programming in Zk, I would like to take a Bootstrap template and turn it into a ZK Views.     
asked by 06.04.2016 / 11:03