Questions tagged as 'java'

1
answer

Placing an image as a background in the firstfaces

How do I put a background image in primefaces . I've tried some shapes but none worked. The closest to a good result I got was using <p:graphicImage/> however when I minimize a menu or do a search in the table the image does n...
asked by 05.06.2015 / 22:43
1
answer

Do not display another row in the table when status equals "Canceled"

I have a <p:dataTable> that is populated by data that is in a .xml file and I have in front of each line a button to end or cancel the process. How do I not to display more in my DataTable the process that was canceled...
asked by 08.06.2015 / 22:15
1
answer

Object Orientation in Java [closed]

I am new to Java and would like to understand how it works. Type, how to use classe within the other (and what is it called)? protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon...
asked by 04.06.2015 / 04:14
1
answer

Check password fields with each other

How do I validate two password fields if both are the same? if(pfSenha.getPassword() == pfCSenha.getPassword()) { JOptionPane.showMessageDialog(null, "Senhas conferem!"); } else { JOptionPane.showMessageDialog(null, "Senhas não confere...
asked by 09.12.2015 / 12:58
1
answer

Why is the description variable coming out null?

I do not understand why the variable descricao is not producing the values. In this case, it should look like this: Carregador antigo conectando a tomada de conector de dois pinos But it's coming out: Carregador antigo...
asked by 09.12.2015 / 23:46
1
answer

JRadioButton and JButton

Good afternoon everyone! Gentlemen, I'm developing a small application, which is a file converter for your own use here in the company and I come across a doubt that may seem stupid, but I have not found a satisfactory answer yet. It is as follo...
asked by 09.12.2015 / 19:05
2
answers

(Business rule) - Repeated sign

How do I make this business rule that prevents the user from registering an account with the same number and same agency? Class main public class Main { public static void main(String[] args) { menu(); } public static ContaBancariaBean...
asked by 11.05.2015 / 17:33
1
answer

How do I send a list as a data source to a sub report and call this sub report in my main report

Good morning, I have a small problem. I am trying to pass lista as data source to my sub report. I already have the main report which is also populated by a list. My question is, how do I pass a lista as data source t...
asked by 20.05.2015 / 14:16
1
answer

Error handling in the Google maps Android API

I am making a register of people with address to show on the map where a person lives. When I type the correct address everything works normally, but when I get the error, which is not valid for Google Maps , the app closes. @Override public...
asked by 15.05.2015 / 14:37
2
answers

JOptionPane - Cancel button error

I'm developing an ATM system with JFrame , however when I use a JOptionPane , when I click the cancel button it appears some errors in the Eclipse console. Follow the errors below: Exception in thread "AWT-EventQueue-0" java.l...
asked by 21.05.2015 / 04:51