Questions tagged as 'java'

1
answer

Error exporting report to pdf

I have an error when exporting a report to pdf I am using Jasper Report 5.6.0 before the report I exported it well but now I do not want to do it and in the log I do not have any error this is the code to print public void PD...
asked by 06.07.2017 / 19:05
1
answer

I check CheckBox and TextView together, but it does not work correctly

I know there are many questions about checking if CheckBox is selected or if TextView is empty, but I try to do a check of both together and do not do it, what I have done is the following. btn1.setOnClickListener(new View.OnClic...
asked by 03.06.2017 / 14:09
3
answers

Combobox with selected element based on an identifier

I have the following Form: What I want you to help me is that when you put a District Id in the text box, in the comboBox you select the district corresponding to the id entered Here I leave my code public class daoempleado{...
asked by 05.07.2017 / 21:32
1
answer

SOAP - JAVA - java.lang.ClassNotFoundException: com.sun.xml.bind.api.JAXBRIContext

Main Class import javax.swing.RowFilter.ComparisonType; import net.webservicex.ComputerUnit; import net.webservicex.ComputerUnitSoap; import net.webservicex.Computers; public class llamarServicio { public static void main(String[] arg...
asked by 05.07.2017 / 18:41
1
answer

Help with JAVA survey program

Could you help me please with this code, I do not finish understanding why you give me this error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at com.company.Main.main(Main.java:64) Apart from that if you ca...
asked by 05.07.2017 / 20:58
1
answer

Java change color to JButton Mac OS X

I am inserting the following button in a JPanel as follows: JButton button = new JButton(); button.setBounds(50, 50, 40, 40); button.setBackground(Color.RED); button.setOpaque(true); this.add(button); Add that I have the layout of th...
asked by 05.07.2017 / 19:48
2
answers

consume web service in java

I am new to the topic of consuming web services, and I want to consume it in Java EE.This is link I can not do it, greetings in advance     
asked by 06.06.2017 / 00:12
1
answer

How can I show a separate string array and its values?

I am working with mulestudio and I have a string that is large and I made an arrangement of it since when I call the string to print it or it gives me errors or it shows me all messy and what I want is to show each variable with its value separa...
asked by 06.06.2017 / 14:39
2
answers

Open ImageView in Fragment by clicking on ImageView

How can I do so that every time I click on an image it opens in a Fragment ? I have done the following, I do not know if it will be the right method but it is what has occurred to me. My main class: Here I have the three ImageView...
asked by 28.05.2017 / 19:58
1
answer

problem with decimal in java

I have a product of two numbers double resultado = XN1 * XN; but that result would like to add a 0.resultado, I do with this method String convertirdecimal(String cad) { String cad2 = "0." + cad; return cad2; } When that happen...
asked by 22.05.2017 / 14:58