Questions tagged as 'java'

1
answer

NullPointerException when trying to open database

I'm trying to include an item in the DB that was selected, but when I try to open the database using .open(); I'm getting a NullPointerException error. After the user selects which item to save, I display AlertDialog and r...
asked by 17.06.2015 / 16:06
1
answer

Stopwatch - Timer

I made a stopwatch (ie a timer) that should be executed when a certain button is clicked. I was able to do the timer, but I can not shut it down. After calling it is timing "forever" rs. I would like you to help me. Code: package controller...
asked by 19.09.2015 / 00:25
1
answer

Conversion Error - Null Converter

I have an application where you have a customer registration with plan selection, such plan comes from the bank. When submitting, the following error occurs: Erro de conversão ao definir o valor 'Plano{id=2, nome=3 MEGA, rateDown=12121, ra...
asked by 24.09.2015 / 22:49
1
answer

How can I change the appearance and behavior of the "Open" and "Cancel" buttons in JFileChooser?

Good folks, I'm trying to use JFileChooser to select directories and also files. What I'm using so far is public void buscaFile() { File[] diretorio = null; diretorio = selectDir(); if(diretorio != null) { for(File i : dire...
asked by 18.09.2015 / 01:28
1
answer

How to do zip validation for Android

I would like to know how do I validate a user-entered zip in an EditText on Android. Do I need any specific APIs? I want to validate if the zip is existing and return to the screen if it is not.     
asked by 15.05.2015 / 16:08
1
answer

Help with onitemclick listview

I'm trying to make a Toast appear as soon as the user chooses a Listview option, but when the user chooses the option, the Acticity is first loaded and then the Toast appears. What I really want is the opposite. Fo...
asked by 27.11.2015 / 00:51
1
answer

JTree: Why does it lose focus when I edit a node?

I'm developing a PJC (Oracle Forms) component. I'm creating a Bean with a JTree inside it. In a standard java application, it works fine, but in PJC a strange behavior occurs with the focus. When I press F2 or a long click to edit a tree node...
asked by 30.03.2015 / 14:26
1
answer

JPA / Primefaces - Add / Remove records from a child table

I have a problem with a cadastral panel. There is a store network registry in which I am taking care of the implementation. I can normally insert and remove dataTable items, but this is not reflected in the base in the burning process - when...
asked by 30.11.2015 / 20:14
1
answer

Problem with Spring MVC + javascript

I'm having an issue with Spring MVC and jQuery. I have a jsp with a 'form' and I needed to do a test where when I click on a button, jquery clears the texts of some "input type = 'Text'". I even managed to test, but every time I click the...
asked by 30.03.2015 / 16:15
2
answers

How to create an executable in java + MySQL database?

I created a java desktop application that connects to a MySQL database, how can I generate this application to run on any machine along with my database? Thanks!     
asked by 08.04.2015 / 20:28