Questions tagged as 'java'

1
answer

file properties is in the main project folder but I want it in the .jar folder

I added a properties file to my project, this file is saved in the main folder of the project while the jar is saved in the dist folder. Every time I want to test the jar I have to move the properties file to its folder and every time I compile...
asked by 23.10.2017 / 16:05
3
answers

Add a custom listview in a fragment

I'm trying to use a custom listview in a fragment, I've already searched several pages and I've already searched in this forum, but I can not locate myself to adapt it to my own. My problem is that in code I can not get the custom adapter to...
asked by 18.10.2017 / 19:40
2
answers

How to save parameters in an object array?

I'm doing this program import java.util.*; public class gestionDesposito { public static void main(String[] args) { int tamanio=0; String identificador="00001"; double lado=1000; double alto=500; Scanner sc= new Scanner(Sy...
asked by 20.10.2017 / 10:50
1
answer

Exception in thread error "main" java.lang.ArrayIndexOutOfBoundsException: 0 at gestionDesposito.main (gestionDesposito.java:13)

I do not know how to solve this error (I think it's because I do not aim well at the position of the array but I do not have much idea how to fix it). import java.util.*; public class gestionDesposito { public static void main(String[] args)...
asked by 20.10.2017 / 10:07
1
answer

How can I perform several operations on the same attribute?

public class MiNumero { private int Valor; private int NumSuma; private int NumResta; public int getNumResta() { return NumResta; } public void setNumResta(int numResta) { NumResta = numResta; } public int getValor() { return Valor...
asked by 22.10.2017 / 13:28
2
answers

How can I make chains, with Java or JavaScript? Help!

Hello Good morning to all, what happens is that I want to capitalize some chains with JavaScript, java or CSS, the latter with CSS and try with the property text-transform: capitalize; and it did not work, they only change with the other propert...
asked by 03.10.2017 / 15:04
1
answer

How to copy a text file odd lines and another file even lines and dump it in another

and so with all the lines one by one line so that it is archivo1linea1 (nueva linea) archivo2linea1 (nueva linea) archivo1linea2 (nueva linea) archivo2linea2 (nueva linea) Code public static void main(String[] args) throws IOException {...
asked by 10.10.2017 / 01:29
2
answers

Difference between ActionPerformed and MouseClicked Java

I'm starting to see the graphic interface issue in java, and I notice that if an event is assigned to a JButton example: MouseClicked is a different method of ActionPerformed , What is the difference between this and any other event assigne...
asked by 08.09.2017 / 18:08
2
answers

How to properly run webdriver selenium chrome and firefox?

Hi, I've been watching tutorials on how to run selenium webdriver in firefox and in chrome but they do not work for me. Only the browser opens but it does not access the page I indicated, and it tries in several ways and it does not work for me,...
asked by 10.09.2017 / 16:00
1
answer

Scroll Horizontal on Android Canvas

I'm working with the Canvas class and I have several problems. I have a class called Workbench that extends the View class to use it as a canvas. On the canvas there are X squares and I can drag them across the screen. I have added the fun...
asked by 01.09.2017 / 21:07