Questions tagged as 'java'

1
answer

What is the error of this code - java

Genero obj=new Genero(); int swG=0; while(swG==0) { System.out.print("Genero\nM : Masculino\nF : Femenino\n>>"); obj.setTipoGenero(entrada.next().charAt(0)); if ((obj.getTipoGenero() != 'm') || (obj.getTipoGenero() !...
asked by 23.06.2018 / 06:50
1
answer

Do not delete the txt file

I'm trying to make a program that deletes a player from the ones in a txt file, so I create a tmp file and then I want to erase the original and rename the tmp with the name of the original. private static void DeletePlayer(File f){ System...
asked by 23.06.2018 / 16:06
0
answers

change time zone in apache tomcat

I have a virtual machine installed with windows 7 and I want to change the time zone because as I am from Colombia when I try to enter an hour for an application called open data kit changes it to me 5 hours ahead, eg: if I enter as hour...
asked by 23.06.2018 / 15:03
1
answer

Arrays enter elements in an already defined array

Hello forum: D I have a question: is there any way to enter elements in any position of an array? This code allows me to duplicate the parts I want, but I want the duplicate to be able to put it in the desired part of the character array...
asked by 25.06.2018 / 00:22
1
answer

Why is it null? Java heritage

public class PracticaHerenciaSimple { public static void main(String[] args) { System.out.println("** CLASE PADRE VEHICULO **"); Vehiculo vehiculo = new Vehiculo() {};// constructor por defecto creado por el compilador...
asked by 23.06.2018 / 01:55
1
answer

how to send the class from one package to another class from another package

This is my window where the menu bar goes package ventanas; import java.awt.*; import java.awt.event.*; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import javax.swing.JFileChooser; import Menu.Archiv...
asked by 22.06.2018 / 21:39
0
answers

Delete row from jTable ordered or filtered, associated to a database?

I have a JTable that feeds from a database, if I keep the table static and use the code that I paste at the end of this comment, which is to delete the selected row, it performs correctly both of the table as of the data base. But when deletin...
asked by 16.07.2018 / 19:27
0
answers

List with RecyclerView

I created a list with recyclerView, but it only shows me one item of the item, and I have to do Scroll to see the others. Is there any way to display all the items in the list, without having to do Scroll? I'm trying several options, but none wo...
asked by 02.07.2018 / 13:57
0
answers

Implement web service php

Good day I am having trouble to consume a service done in java. I have this example that is done in java and works correctly but when I try to do it in php it does not work. Here is my code: <?php ini_set('soap.wsdl_cache_enable...
asked by 09.07.2018 / 16:19
0
answers

space between the elements when maximizing with JFXMasonryPane

Someone knows how to re-create the space between the elements that is created by maximizing the window using the JFoenix library and its control JFXMasonryPane when opening this normal but when maximizing the window larger spaces are creat...
asked by 09.07.2018 / 18:28