Questions tagged as 'java'

0
answers

How to combine cells in excel using Apache POI in Java?

I request help in the combination of cells when creating excel with apache POI, the cells are combined without problem using sheet.addMergedRegion(new CellRangeAddress(0,0,0,1)); , however, it only shows me the values on the left and the v...
asked by 28.11.2018 / 21:07
0
answers

Java Rest API error

I'm having a problem in which I get this error, I do not know why I'm trying to open the url of an api rest that believes in Java.     
asked by 30.11.2018 / 13:55
0
answers

External serial key is self-generated when inserting

I have a table "clients" : CREATE TABLE clients ( id serial NOT NULL, name character(25), user_id serial NOT NULL, CONSTRAINT "Client_pkey" PRIMARY KEY (id), CONSTRAINT clients_id_key UNIQUE (id) ) WITH ( OIDS=FALSE ); ALTER TABLE...
asked by 28.11.2018 / 16:21
1
answer

Error 'org.thymeleaf.spring4.processor.attr.SpringOptionFieldAttrProcessor' when posting object from form with ThymeLeaf and Spring MVC

This is my class FisicHost.java : // Remove imports and getter / setters to make it shorter @Entity @Transactional public class FisicHost { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ManyToO...
asked by 28.11.2018 / 16:00
0
answers

Problem to show or hide a JFrame

I have the following problem, I have 3 JFrames for several things, in the first one you enter data that is sent to the other 2 JFrames one to show the data in one table and the other to show the data in a graph, to the first I assign setVisible...
asked by 28.11.2018 / 23:34
1
answer

Save textview value in a variable

I have the following declared TextView: TextView billChangeTV[0] = (TextView) parentView.findViewById(R.id.billChangeTabCash); I wanted to know how I can save the value that appears here in a variable of type double. Greetings.     
asked by 29.11.2018 / 12:15
0
answers

Save data from a JComboBox in the Access database

I made a Form that is what I will save in one of the Access tables and one of the data I use with JComboBox and when doing a desktop test (run to test) it does not let me save the data (items) of the JComboBox. The Database I do in Access is...
asked by 29.11.2018 / 00:00
0
answers

Fix in NetBeans Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

I am trying to make the game ONE, I have 5 classes: Model, Window, Controller, Cards and ONE. In the UNO class there is the main and there I have an object of type Controller that receives 2 attributes, v and m with v the name of the construc...
asked by 29.11.2018 / 01:36
0
answers

Send email with attachment

Good morning, I try to send an email with attachments, but the program but a NullPointerException is generated. This is the code to send the mail: public static void enviarConGMail(String destinatario, String asunto, String cuerpo,...
asked by 29.11.2018 / 16:35
1
answer

App stops when using Connectivity manager

I have a class in which I pretend to see if the user is connected or not. However, the whole method did not work, so I was removing things to see what the problem was and I have seen that only with the code in this way the app stops when executi...
asked by 13.07.2017 / 06:43