Questions tagged as 'java'

0
answers

Use Update for HIbernate in a form Primefaces

I have an Xhtml page with a DataTable and within that Datatable has a list with the result of items that came from the Database, one of the columns has a button called edit where it opens a form with input'se that inputs are filled with the data...
asked by 15.09.2018 / 04:42
0
answers

Help with Fraction with java

I want to do the following algorithm: 300/15 + 350/14 - 400/13 + 450/12 - ..... That is, when the denominator is odd it adds up to the next result, if it is even, it decreases. Here's my code, but it's giving me a different result from t...
asked by 15.09.2018 / 05:05
0
answers

Problems running SonarQube

I can not run SonarQube, I'm having problems with the sonar module. Here is the log: Running SonarQube... wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftw...
asked by 13.09.2018 / 13:42
0
answers

How to make a sound when the stopwatch is finished in the ANDROID STUDIO?

Good evening! I am developing a timer and I do not know how to enter a warning sound to notify that the timer has zeroed. Could you help me? Follow the code: package coleti.a.homebrew; import android.content.Context; import androi...
asked by 13.09.2018 / 03:48
1
answer

How do I exit JOptionPane without closing the Main window?

I'm trying to create a Java program in Calendar, but when I exit the JOptionPane setting the name of the Directory Owner, called by the main window, the entire application is closed. String nome = ""; do{ nome = JOptionPane.showInpu...
asked by 13.09.2018 / 15:49
0
answers

Popular select option based on choice of another select option

Hello, I'm popping a select option using useBean . <jsp:useBean id=“catDAO” class=“contas.categoria.CategoriaDAO”/> <c:forEach var=“categoria” items="${categoriaDAO.lista}"> <option value="${categoria.idcategor...
asked by 06.09.2018 / 16:52
0
answers

How to use join in tables with JPA? [duplicate]

I have two tables, one is called project and the other is called employee, I already have them mapped, but I need to have a third table with the name of EMP_PROJ equal to the wikibooks Java Persistence , I made a few attempts but did not suc...
asked by 17.09.2018 / 19:09
1
answer

Simple Chained List

I'm having problems with the function of removing an element at the end of the List Defining the node: class Node { Node proximo; int chave; Node(int chave) { this.chave = chave; } }...
asked by 05.09.2018 / 16:11
0
answers

JAXB Unmarshaller xml "String" for object returning values all null

I'm using JAXB to get an xml string and convert to object, but the object is with all null values. Class import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax....
asked by 04.09.2018 / 16:48
0
answers

Action Bar is transparent but buttons do not work

I use a Toolbar in which I wanted to be transparent, until I did however the button burger n is clickable, can anyone help? It looks something like this: Myxml:<?xmlversion="1.0" encoding="utf-8"?> <android.support.design.widget.Coo...
asked by 04.09.2018 / 15:21