Questions tagged as 'java'

1
answer

JPA does not persist the Object in the bank

I have a problem in which I try to persist data in the Bank with JPA and hibernate only that it does not persist the Object. It creates the table but does not persist the data and no exception is presented. Follow below as I'm doing: pub...
asked by 17.06.2015 / 20:26
1
answer

Problems with date field in spring

I'm not able to retrieve a date field from my jsp. The field looks like this: <label for="txtDataEvento">Data do Evento</label> <input type="text" name="data" class="form-control" id="txtDataEvento" value="${evento...
asked by 05.06.2015 / 15:13
1
answer

How to block an item from a listview?

I have a TextView list in a ListView , and when I click on one of the TextView I have access to a Fragment in>. How do I, when in a Fragment , the TextView responsible for opening it is blocked? Therefore, the application will not be forc...
asked by 06.06.2015 / 04:52
1
answer

Framework for Generating Graphics for a Desktop System in Java

Good afternoon, I'm developing a desktop system in Java and need to provide data visualizations through graphics. I would like to know if anyone knows, has heard or already used any framework for that purpose? I do not wa...
asked by 07.06.2015 / 21:53
1
answer

How to call constructors with arguments?

How to set constructor values in the main class by Scanner in a constructor like this?. public Aluno(String nome,int idade) { this.nome = nome; this.idade = idade; } and in the main class call: Aluno pedro = new aluno(); and in...
asked by 29.01.2016 / 20:10
1
answer

How to create bookmark in logback?

Hello I'm trying to create a bookmark inside my logback appender and I could not. My code is <appender name="ErrorFile" class="ch.qos.logback.core.rolling.RollingFileAppender"> <!-- Support multiple-JVM writing to the same lo...
asked by 03.02.2016 / 22:33
1
answer

Accents EditText Android

Someone there knows how I can and can do the following, in my EditText I wanted the user could not put accents. Should it be better to treat the text and remove it after typing?     
asked by 06.05.2015 / 15:24
1
answer

Ajax Status == 0

I'm using a function in ajax to make some dynamic requests, but req.status is returning 0 instead of 200 . What can it be? Below the code: if(window.XMLHttpRequest) { req = new XMLHttpRequest();...
asked by 06.05.2015 / 20:34
1
answer

How to show a jPopupMenu just below a jTextfield?

My intention is to create a search field where you go typing and displaying the data of a query in the DB as a popup menu. I already got it, it's working. I created the menu and I can show it on the screen with the data, but the position is the...
asked by 29.04.2015 / 20:15
1
answer

Read A tag that stays inside another in an .xml file with DOM API

Take data from a tag and then grab data from a child tag. For example, I have 2 tags that are repeated for the entire document, and I need to get data from both: <teste:dadosLote> <teste:numeroLote>380</unimed:numeroLote>...
asked by 30.04.2015 / 20:47