Questions tagged as 'java'

1
answer

Deserialize JSON to Object in Java

How can I deserialize the attribute properties of Object -> templateComponents to be able to access only the information of latitude, longitude y name ? Right now properties is a String and I need it to be...
asked by 08.11.2018 / 13:44
1
answer

JavaMail Shipping problem

I'm having a problem sending an email from an application made in Java (netbeans). The problem is that I want to use a mail "webmail" instead of gmail (where it works) the issue is that by making the corresponding changes, the frame freezes and...
asked by 06.11.2018 / 18:32
0
answers

Cutting Command HPRT Printer with JAVA

Dear good afternoon, I have a hard time printing tickets with my POS printer. The ticket prints it normally but I do not know how I could make it cut at the end of the printing, this is the java code I'm using. private String contentTicket = "...
asked by 06.11.2018 / 20:32
0
answers

A method that returns an object of a class Daughter from an Array of the type of the Parent Class

Good you could help me to make a method that returns an object of so much Magazine / Novels of class Daughter being the arrangement of the inventory of type Books as a parent class, I need in the main program the object of the type of the class...
asked by 06.11.2018 / 16:16
0
answers

Modify data in an array-list

I am doing a program which is used to put data of people the program must contain a menu where this high, changes and low, in the changes I must look for the name of the person to whom I will change the data and tell what data to change it and t...
asked by 09.11.2018 / 05:55
0
answers

Convert OutPutStreamWriter to ByteArrayOutPutStream

I'm trying to convert a OutputStreamWriter to a ByteArrayOutputStream out = new OutputStreamWriter(new FileOutputStream("C:/Repositorio/agora-renewal-base/template/email.html")); ByteArrayOutputStream templateStream = new ByteAr...
asked by 09.11.2018 / 09:30
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
0
answers

configure tomEE with Docker

Thank you very much for your time, I am learning Docker and tomEE and I would like to configure it took more than a day dealing with everything I found on the web but I still can not even enter the manager I leave my file...
asked by 06.11.2018 / 06:49
1
answer

How to know Exactly the lines of a jlist in java?

As I said in another question answered I have a list that I use as a line counter and it works fine but now the problem is here when I open a file anybody tells me all the lines well but starting from 2 years ago I put them to write me too in th...
asked by 25.11.2018 / 21:59
0
answers

query from java to mysql

First I make a record to the database from a Frame and without leaving the application I enter another Frame where I consult the data but the data that I just entered from the previous Frame does not appear, if I close the program and I'll run i...
asked by 25.11.2018 / 23:32