Questions tagged as 'netbeans'

0
answers

How can I consume a soap webservices from android that returns an arraylist of objects and pass them to a ListView?

I'm doing an android application and this has to be connected to a webservices that I did in netbeans that returns an arraylist of database objects and show it in a listview, I consume it with ksoap2 in android studio but I do not know how to do...
asked by 07.07.2018 / 22:15
0
answers

Error with java.sql.Date.valueOf

In this part of the code: int seleccionado = cbotipo_reserva.getSelectedIndex(); dts.setTipo_reserva((String) cbotipo_reserva.getItemAt(seleccionado)); //fechas Calendar cal; int d,m,a; cal=dcfecha_reserva.getCalendar();...
asked by 30.06.2018 / 05:24
1
answer

Capture the ID of my table by means of jcombobox

Food in several ways my jcombobox but to capture the data does not work with this code full cbo: public void fillprovider (JComboBox cboxprov) { String[] registros = new String[2]; DefaultComboBoxModel llenar = new DefaultComboBoxModel();...
asked by 27.06.2018 / 01:23
2
answers

Load data to a Java form from sql

I'm trying to load previously stored data in a bd to a Java form What I want to achieve is that by selecting a list from the combobox load all the corresponding data (name, age, phone) My problem: When selecting a rut from the list...
asked by 27.06.2018 / 06:32
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 / 18:06
1
answer

Game of dot and fame in Java

I am a student of 1 semester of ing. of systems, I have to make a game of "point and fame" in java and I am quite entangled to tell the truth. The game tries to generate 4 random numbers that are not repeated, the user will try to guess what the...
asked by 20.06.2018 / 23:43
0
answers

java.langNullPointerException (query Mysql in Jframe Form)

I'm new to java programming MySQL I have made a database with Java and managed to insert data but I could not extract the information in certain fields. This is the code to insert in Mysql: import java.awt.event.KeyEvent; import java.sql....
asked by 15.06.2018 / 18:02
0
answers

Save image from a jLabel to a PC using a JFileChooser

I have a development in JAVA that stores images in a database, and you can view them again, I need your help, because with a button I want the image that is selected from the table to be saved in the PC. When a row of the table is selected, t...
asked by 10.06.2018 / 07:59
0
answers

How can I print a JTextArea and have the text fit the print sheet?

public boolean imprimirTxtArea(boolean flag) { if (flag == true) { String Cabeza = "Titulo"; String Pie = "pagina 1"; try { //Mensaje de encabezado MessageFo...
asked by 07.06.2018 / 21:50
0
answers

problems in compilation jfreechart and netbeans

I have a program made by using RXTX library (or jSerialComm, I'm not sure because it seems that it takes any of the 2 same code) the data sent by arduino sensors. Then I graph them using the JFreeChart library. Everything works like a charm whil...
asked by 07.06.2018 / 19:29