Questions tagged as 'java'

0
answers

@ManagedProperty on a Managed Bean class returning null

I'm trying to inject a Managed Property into my class, but every time I try to access it in a method annotated with @PostConstruct it returns null, thus generating an Exception. Below is my class: package br.com.pathfind.importacao.m...
asked by 03.02.2017 / 14:24
1
answer

How do I make my image appear inside the ui: repeat tag?

I have a question. I'm using JSF and PrimeFaces to make a website for ebooks and I need to display the ebooks that are stored in the database. I can register the ebook normally, but at the time of displaying, the cover image of the ebook does no...
asked by 19.08.2016 / 02:23
0
answers

JPA Criteria - Using between with Subquery

   "The numbers at the beginning of the queries and the" criteria "were inserted to facilitate the explanation. (1 -...) (2 -...) (3 -...)" I need to do this in the JPA criteria: SELECT DISTINCT service.* FROM service AS service INNER...
asked by 06.12.2018 / 13:46
1
answer

Returning value 0 in this.return java

I'm trying to make a program that brings me the critical path to a list of activities reported by the user, my problem is: my code is returning 0 for the calculation of slack. Intheaboveimageexample,theslackinvertices2and6is8,whenIputtheseda...
asked by 13.07.2016 / 06:35
2
answers

Public with 2 variables does not return value

I have 3 publics that should return a calculation value for me to display on the Activity screen. The first, volume_agua_mehta() , returns normally, but the second, massa_brita_mehta() , and the third, agua_material_cimentício_meh...
asked by 20.01.2017 / 16:20
0
answers

Which ideal start, Swing or JavaFX? [closed]

I'm starting now little with the graphical part using Java ... Reading some articles on the internet, I saw that Swing is old and has an older graphic and everything. But JavaFX is more beautiful, than to work with CSS3, pra for beautiful eff...
asked by 16.01.2017 / 02:02
1
answer

Create JLabel below image

I created a JPanel of 672x750 and placed a 672x672 image inside it. I need to put texts under the image, in the space left over. Is there any way to create a JLabel and position it below the image? I've tried, but they take up all the space avai...
asked by 24.07.2016 / 18:21
1
answer

Insert background image in JPanel [duplicate]

I already checked and the path is correct, but when I run nothing appears on the screen: public class MapaInterface extends JPanel implements ActionListener { private Image fundo; public static Agente daenerys; private Timer timer; public...
asked by 23.07.2016 / 16:02
0
answers

How to correct the error Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec?

I'm having this error:    ----------------------------------------------- ------------------------- BUILD FAILURE   -------------------------------------------------- ---------------------- Total time: 3.454s Finished at: Sat Jul 23 11:47:20...
asked by 23.07.2016 / 20:10
1
answer

Interleaved 2 of 5 Barcode - Increase string size in parameter

Good morning, friends! I have a problem when passing the String with the barcode in the BarcodeInter25 parameter, In this code it is working but if I pass "23797685200000345000280090000014189301107610" it generates an Exception from java.lang...
asked by 20.07.2016 / 15:25