Questions tagged as 'java'

1
answer

Page JavaFX

I was playing with JavaFX and crashed when I wanted to add paging to my little application. I have listview filled (as can be seen in the image), when I click on an item, your information is shown on the right. Astheapplicationwasm...
asked by 22.11.2016 / 23:33
1
answer

How to represent a relationship N: N in java?

I think it's a simple question, but I could not find any examples that would make that clear. I have already done my database model in PostGreSQL and at the time of creating the classes I got a little lost. I have List entities (stores user's fa...
asked by 16.10.2016 / 01:51
1
answer

getElementsByTagName returning zero [closed]

I'm using the following code to read a file .xml try { File fXmlFile = new File("C:\res\teste.xml"); // C:/.../teste.xml DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuil...
asked by 22.12.2016 / 18:50
1
answer

Read XML with Java

I'm using the following code to send a .xml via SOAP package consumirwebserviceporrequisicaoxml; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.StringWriter; import javax.xml.soap.MessageFactory;...
asked by 22.12.2016 / 19:24
1
answer

Write data to file in android internal memory

I need to write a set of variables: int var1,var2,var3 var4=new int[10], var5=new int[10], var6=new int[10] var7=new int[5][3],var8=new int[5][3] My goal was to record them all in order and then read them all in the same order. For the othe...
asked by 20.12.2016 / 20:45
1
answer

Java Iterator | Increase within a sentinel

public void actionPerformed(ActionEvent e) { i++; ImageIcon icon = new ImageIcon(files[i].getAbsolutePath()); imagem.setIcon(icon); frame.add(imagem, BorderLayout.CENTER); } }); I have an arra...
asked by 22.09.2016 / 23:03
1
answer

Error trying to insert data via JSF form- BEAN error

I'm starting to create a WEB application using JSF, however I try to insert some data through a form and the error below is displayed:    /usuario.xhtml @ 19.72 value="# {BlueEmail user"): Target   Unreachable, identifier 'userBean' resolved...
asked by 24.09.2016 / 03:25
1
answer

Error while serving servlet - Java 7 vs Java 8

I rented a VPS server and when trying to connect my android application with Java EE, I received the following message: type Exception report message app/server/CSelerServer : Unsupported major.minor version 52.0 (unable to load class app....
asked by 23.09.2016 / 21:17
1
answer

Create push button

I have a problem that I did not find any solution to, I'm trying to create a forward button to move the pages of my .pdf file that is displayed on my JSP page. String arquivo = ""; String i = ""; try { arqu...
asked by 23.09.2016 / 14:23
2
answers

Return values using Dialog's

I have the following dialogConfirme method in which it contains a custom dialog declared as public static to return a value of type boolean . The static issue is so I can call any class using a context as shown...
asked by 06.09.2016 / 16:52