Questions tagged as 'java'

0
answers

Encoding Java shows non-readable characters

I am deploying a Java Servlet in Weblogic, The only drawback is that I am bad at encoding, it comes from a properties file (.properties) and it is UTF-8. When I execute it, it gives me the following output: link ��srjava.util.HashMap��...
asked by 17.04.2017 / 23:52
1
answer

event to JTextArea

Hello, how could you help me? I am new to the topic of events in java. I have this class, which simply creates a form with 2 JTextArea objects. I would like to know how to print a hello on the console by alternating the cursor position bet...
asked by 17.04.2017 / 18:12
1
answer

java.io.IOException: Could not open

These are the errors that happen to me and what I do, a reader and I try to pass it to a parsing, what I do is send a data and return the string in XML and thus pass it in Sax. <?php $link = mysqli_connect("mysql.hostinger.es", "u12608...
asked by 18.04.2017 / 16:11
2
answers

(Incomparable Types: String and Order) Compare an entry in JTextField with the database in JPA

I try to make a way that the value entered by the user can be compared with the data of a database column or a JTable (not what is better for that purpose), for example: when the input of the control number to be: 123456 and in the coluna numCon...
asked by 10.04.2017 / 16:18
1
answer

add sql server driver in jaspersoft

I'm trying to create a Data Adapter that connects to sql server 2008. When I created the Data Adapters, I selected the driver that gives me to select for sql server I put: bd: RecursosHum user: sa password: sa bu...
asked by 10.04.2017 / 13:44
2
answers

How to do so that the program tells me the sum of 5 is 10 and not the sum of 0 is 10

in the following code that compiles and executes I get that the number to do the sum is 0 but the sum to put the number that is if you do it correctly. Here the code: import java.util.*; class Args{ public static void main (String[] args){...
asked by 09.04.2017 / 14:09
2
answers

download file by clicking on a recycler view

Let's see if you can help me because I do not know what to do My intention is that in the recyclerview when I clicked, I downloaded a file based on the link provided by the sql I've already tried all the methods I know and I've searched bu...
asked by 07.04.2017 / 19:48
1
answer

How can I find a java WebDriver checkbox item?

I need to find and select a checkbox. <p class="checkbox"> <div class="checker" id="uniform-cgv"> <span class="checked"> <input name="cgv" id="cgv" value="1" type="checkbox"> </span> </div>...
asked by 08.04.2017 / 18:31
0
answers

My authentication application in adroid studio always marks failed authentication

I already have my application but because more than I put the correct username and password it tells me that it is invalid, and this code had already done it before and if it worked, I do not know what I'm doing wrong package com.example...
asked by 22.04.2017 / 02:34
1
answer

Problem with setSelectedItem in JComboBox

I have a problem fixing an object in a combobox. I explain the situation. I have a mysql a table with a data series (client table), one of those data is a foreign key to another table (city table). In my java program I create an object with the...
asked by 22.04.2017 / 18:25