Questions tagged as 'java'

0
answers

Complement code with a class

Hello, I have this class called CostPersonal, and I have to create a treballador class that complements it but I do not understand when it refers to treballador.DIRECTOR public class CostPersonal { static float CalculaCostDelPersonal(Treb...
asked by 12.11.2017 / 14:12
1
answer

Get DATE column of the JTable to save it in SQL

I have: SQL Server 2017 I have jcalendar-1.4 added to my project I have import java.sql.Date; in my class. I have the column fechaNacimiento type DATE in my database. To obtain the information from the da...
asked by 11.11.2017 / 04:28
1
answer

How do I access EJB Remote from a different EAR on WebLogic 11g?

I'm doing an application in WebLogic 11g (WebLogic 10.3.6), this server uses JDK6, I want to access a Remote EJB from an EAR different from the one that contains the EJB, I'm working in Eclipse Oxygen with the OEPE tools, my code is this: Re...
asked by 10.11.2017 / 20:50
1
answer

Delete of an entity in DB with spring

Good afternoon, I have an information system with a DB in Mysql. The connection with her and the mapping was made with Spring. I am creating the services and I have a very important question. I put in context, I have two Ranger Entities and C...
asked by 11.11.2017 / 19:37
1
answer

How do I make the division of 2 integers show up as a number with their digits in JAVA

< double anioB = 0;    AnioB = subtotal / 1461;    System.out.println (String.format ("%. 3f", anioB)); // pulls 503,000 with subtotal 734952 and actually it should be      503.0472 .... >     
asked by 11.11.2017 / 16:22
0
answers

doubts show products

I need to develop a program that allows me to enter products and show them hopefully filtering them according to some preference. I have three objects; enter products, show products and products. The idea is that the product class triggers the p...
asked by 11.11.2017 / 20:54
1
answer

Warning: Classpath is incomplete. Only syntax errors will be reported

I am using Atom as my code editor, I have installed the package "atom-ide-ui" and also "ide-java" to be able to use Atom as an IDE. When I open any .java file, it sends me this warning. I have also set the Classpath variable of my syste...
asked by 09.11.2017 / 07:48
1
answer

I'm doing a page with JSF but it does not show the components "u:"

I'm making a simple page (I'll leave the code below) but it does not show me the components. <body> <h2>h:inputText example</h2> <hr/> <h:form> <h3>Read-Only input text box</h3> <h:inputText...
asked by 08.11.2017 / 21:59
1
answer

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

I am trying to update my dataTable every certain time from the Controller with the following code. if (tiempMilisegundos > 0) { timer = new Timer(tiempMilisegundos, new ActionListener() { public voi...
asked by 08.11.2017 / 19:25
1
answer

Load image from MySQL to ImageView JavaFX

I need to upload an image that is stored in MySQL This table called conductors contains these columns: I managed to save them but now I need to obtain them when the user searches for that driver by his personal identity number. I hav...
asked by 08.11.2017 / 15:32