Questions tagged as 'java'

1
answer

How to add a date from Java to a sql

I am generating a maintenance of a SQL database, I have the button to add which has the following configuration: private void btModificarActionPerformed(java.awt.event.ActionEvent evt) { // T...
asked by 28.11.2017 / 03:21
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
2
answers

How do I show toast or toast every time my list increases or decreases?

I have a list that increases constantly every so often, I want to show a Toast when my list increases or decreases. I was trying but I can not. This is my code: frutasList = new ArrayList<Datos>(); List<String> lables...
asked by 27.11.2017 / 01:38
1
answer

Problem in Android Studio, at the time of making the layout change with the raddio button the application closes on the cell phone

package com.example.marcelosegovia.servicioswebunid; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import androi...
asked by 26.11.2017 / 22:12
1
answer

onActivityResult is not working and I can not solve it

this is my code: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);...
asked by 25.12.2017 / 17:39
1
answer

Cycle problems while java

I need your help. Something strange happens in this part of the code. abc = is a created object that handles the graphical interface and the tcp connection. up there all right the abc object creates the graphical interface and manages the tcp co...
asked by 27.01.2018 / 16:07
0
answers

Error compiling java in JCreator Pro

I have this problem when trying to compile a java file in Jcreator, what can it be?     
asked by 27.01.2018 / 00:55
0
answers

libGDX does not change the screen color or draw actors from a Screen class

You see, I'm creating a scenario with liBGDX , following a tutorial, in which I want to change the screen color and draw actors, however I can not do any of the 2 things, I can only clean the screen from the method renderde MainGame...
asked by 26.01.2018 / 21:06
1
answer

Modify Map Java

I have a problem to modify a HashMap, I enter the Rut data (as a key) and its values, but when I want to modify the key it replaces the values, I do not know if I understand. For example, the values entered are Rut: 11, Name: aa, Position bb,...
asked by 22.11.2017 / 03:49
1
answer

How to make a list pass with jframe and mysql

How about, if you could support me it would be great, I'm creating a project about a school control in java netbeans with jframe connected to mysql command line client, but I got stuck when I went through the list, my idea is to have a jframe th...
asked by 30.11.2017 / 23:44