Questions tagged as 'java'

1
answer

hashtable classes and hashMap help! [duplicate]

I must implement a system for viewing and updating student data. At the beginning the system must load the data of the file students.txt and show the following menu: See data Search Student Exit To carry out this project, what is th...
asked by 07.08.2016 / 05:42
1
answer

Write on the keyboard on android with the API

Good I am developing an application that needs to write in text boxes of another application, I would like to know how it could be written in a text box with code.     
asked by 01.03.2017 / 02:32
1
answer

Generate PDF in memory not in hard disk

How the pdf could be stored in memory; What I do not want to do is the following: File newPdf = new File("/var/reports/genera01.pdf") Basically I do not want to occupy space on the disk since after I get the PDF I want to print it with P...
asked by 05.09.2016 / 23:36
1
answer

SplashScreen: AsyncTask + ProgressBar + rotate device, Android

I have a splashcreen where I run a background process with AsyncTask , when the device is broken the previous task continues, but it starts again. I am reading about how to face the problem, in the best way possible, that is, avoid bad...
asked by 06.09.2016 / 20:15
3
answers

Equivalent in C # ClassT of java

In Java, I can declare a generic T and that a method receives as an argument the class to which the generic belongs. For example: protected static <T> T hacerAccion (Class<T> respuesta) { //implementación... } What wo...
asked by 11.05.2017 / 23:15
1
answer

Install App on the lock screen (lock-screen)?

Dear, someone knows if the installation of an apps for the lock screen is configurable, the idea is that you do not have to unlock the pattern to access it. Pd : it's an application that I'm developing, and the idea is to program it to appea...
asked by 08.07.2016 / 19:40
1
answer

Validate in Java that an incoming json matches the Class model

I need to validate a json that comes from the request body, some fields are required but if the json does not have them, they are returned as null: @Document(collection = "menus") public class Module { /** The module name as unique identi...
asked by 05.07.2016 / 20:20
1
answer

Edit a JPG image with BufferedImage in Java

I am trying to load an Image of any map in a JLabel and when clicking on this map a "pointer" is drawn exactly where I clicked and this image is edited with the new pointer, for this I am using a MouseListener, but my program does not draw anyth...
asked by 04.07.2016 / 14:56
1
answer

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

I have problems with lifting the .war. It worked super well in Glassfish, but from one moment to the next without any change, it stopped working. I have configured the asenv.bat with set AS_JAVA =C:\Program Files\Java\jdk1.8.0_91 But it do...
asked by 17.06.2016 / 15:21
1
answer

A frame layout that shows exactly the same as the other

I mean to show it in the following way: Mainlayout2.addView(Mainlayout); Take into account that the view of the camera was added at the first sight in real time ... My goal in itself is to find a way to show in another framelayout...
asked by 22.06.2016 / 09:04