Questions tagged as 'java'

1
answer

Is there any way to start a Thread that is in a method in another class?

I have a method and inside it a thread, I needed to "start" it from another class and then check when the thread is gone. Is it possible to do that? my code: Thread th; public void inserir(){ th = new Thread(){ public void run(){...
asked by 03.11.2015 / 19:04
1
answer

What types of storage for desktop applications?

Well, I'm developing a Java application to manage my bank statement, to separate the releases by categories and date, to generate graphs in the future. What are the means to save, modify and query data? So that I can easily repass the applica...
asked by 04.11.2015 / 01:52
1
answer

Doubt validation of cpf before inserting into the bank

In my class SocioDAO I have the salvarSocio() method that will save to the database. In my class DadosUsuario I have the information that needs to be written in the bank in cadastrarUsuario() case. How to proceed to v...
asked by 13.05.2015 / 19:13
2
answers

How to use mouse click and keyboard ENTER?

How to include in my class an event that gives me the ability to click on JButton and it shows a JOptionPane ? And, in the same way, in the same JButton , I press the ENTER and it shows me the same JOptionPane ?     
asked by 09.05.2015 / 03:09
1
answer

Search by dates

I have a screen and on this screen I have a TextField that is populated by a date in the format dd/mm/yyyy and then I convert that date to yyyy-mm-dd which is the format of java.sql.date until there is quiet, but now I am no...
asked by 29.05.2015 / 21:12
1
answer

Which method can I use for the JButton edges do not appear?

I think the question already describes everything: What method can I use to make the borders of my JButton transparent (not appear) in Java?     
asked by 15.06.2015 / 06:10
3
answers

Business rules in JSF [closed]

In JSF where would be the best place to set business rules? In the model, in the managed-bean, or in a business rules layer (I'm rather reluctant to adopt this latter approach), or do I implement such rules as JSF custom validators? I have quest...
asked by 16.06.2015 / 18:34
2
answers

Problem with user inputs

I have the following code: public class FlagApplication { private Scanner keyboard; .... private void insertNewRegistry(){ System.out.println("insira os dados de pessoa: nome, peso, altura, idade, sexo e bi."); St...
asked by 18.10.2015 / 12:30
1
answer

Play Framework - Which version is the most recommended to use?

I started trying to learn the play framework and saw that until version 2.2.x everything was done from the concole by typing the "play new, play run, etc" command and, except that to run this version it would have to be outdated I would like to...
asked by 10.10.2015 / 21:24
1
answer

How can I change a java desktop application icon in Eclipse?

Is it possible to change the icon of a java desktop application in eclipse instead of having the default icon?     
asked by 07.05.2015 / 19:10