Questions tagged as 'java'

1
answer

List in TextField or an editable Combobox when the user types - JavaFX

Someone more experienced, could you tell me if JavaFX has some way to make a list as you go typing in the textfield. Example: When you are going to enter your facebook email, and you type the first letter and your email appears below, exactly th...
asked by 22.10.2015 / 20:16
2
answers

How to block access to an application by the user's IP?

How do I block access to a web java application by the user's IP. The application will be hosted outside of the company environment, but it needs to be accessed by a certain profile from outside. I have in the user profile the profile of e...
asked by 23.10.2015 / 11:01
2
answers

Doubt of how to submit a form in JSF using p: confirmDialog

I would like to know how I can send a Form using p:comfirmdialog . The idea is to get the message tem certeza ? , with the options sim or não . If you click sim , then it sends the form. <p:commandButton v...
asked by 21.10.2015 / 13:22
2
answers

Difficulty to Mount SQL Query with UNION with SUM

I have 2 tables that stores different sales type, and I need to add everything to get the value to generate the collection, but I'm not able to mount the sql query, as follows: SELECT CL.NOME,CL.id_cadastro_cliente, sum (L.VALOR_LANCAMENTO) a...
asked by 14.12.2015 / 20:19
1
answer

Code that leverages decimal value in C # for Java / Android

I have a code that rounds a value of type decimal to homes I want, and I would like to implement it in Android in Java but I'm having some difficulties, here's the code below in C #. public static class Valor { public static decimal...
asked by 16.12.2015 / 18:37
1
answer

JTree does not update when starting GUI

I have a problem that I can not see the solution: Simply put, my Java program has a swing GUI that contains a JTree (TreeModel custom for system directory view) There is a button to select a directory (via JFileChooser), after selecting JTree...
asked by 14.12.2015 / 16:18
1
answer

java programming and database connection [closed]

I have a problem that is making me miserable. It is as follows: I have a database and I have my program in java everything connected, I already created the jar strong> and everything. But the problem is that the program only runs on t...
asked by 21.12.2015 / 10:04
1
answer

Error adding fields to Text Edit using OnFocusChangeListener

I'm trying to get my application to calculate the fields% cos_de% cost price plus profit percentage and when clicking on the sale price field the result will appear, however instead of appearing the result the following message appears in edit t...
asked by 18.01.2016 / 19:26
1
answer

Notifier of any event that the user performs in the system [closed]

I'm using Spring Framework for java and would like to create I can create a warning type, <scan> , which shows in the table that a new row was added (this line comes from the database), and clicking on it to disappear implying that t...
asked by 14.01.2016 / 18:28
1
answer

Validate Login with Sqlite

I have a problem in the method of validating loguin, it is logging in with both the correct login and password and with them wrong. When it logs in with the wrong login the id of the user goes to 0 and if it logs with the correct data the id goe...
asked by 13.11.2015 / 01:55