Questions tagged as 'java'

1
answer

Functions in Jtable Java [closed]

Good I need to know how to put a function in a Jtable in Java so that in a column it discounts a specific percentage of another column, for example that the table has two columns that in column 1 an amount is put and column two discounts a perce...
asked by 10.08.2016 / 02:25
1
answer

Compare a range of hours and minutes in JAVA

I am implementing a personnel control system, making use of a fingerprint reader. I am in the validation stage. My question is: How can I validate between the time obtained and the time the user has established in the database, with a range o...
asked by 15.08.2016 / 18:48
1
answer

Detect if the Documents directory exists on Android

I see that some devices have the "Documents" folder and others do not, depending on the Android version How can it be detected if the Documents folder exists and if it does not exist to create it? It is for an app that I need to sto...
asked by 05.07.2016 / 18:13
1
answer

I am trying to give a specific position to a button in Javafx, but it is not working, where is my error?

Good morning, I'm learning about GUIs in JAVAfx, after giving a good search in google and within this site, I still can not make my button where I need this, I'm using the button. setLayoutX (); and the respective one for Y, however the button...
asked by 06.07.2016 / 12:50
1
answer

Solve error in Jasper Report: Unsupported major.minor version 51.0

I have created a scriptlets in java, at the moment of executing the preview of the report and invoking the scriptlets function it marks me the following error:    Error filling print ... java.lang.UnsupportedClassVersionError: numberletras /...
asked by 06.07.2016 / 16:04
2
answers

How to enter a date using Calendar?

I need to enter a date that has day, month and year, by keyboard, using the class Calendar, which method I call, of this class. This is the code: package models; import java.util.Calendar; public class User{ protected EnumGenderUser ge...
asked by 03.09.2016 / 17:01
1
answer

How to save read-only data on android? [closed]

I am developing an Android app that performs about 100 questions (a test) and would like to know which is the most recommended way to save the title of the question, the options and the correct answer to access this data from the Activity, I do...
asked by 09.07.2016 / 20:35
2
answers

I get UnsupportedOperationException when deleting from a List in Java

I have the following code in Android Java: List<String> parts = uri.getPathSegments(); parts.remove(parts.size()-1); I returned that error    UnsupportedOperationException I've searched for internet The error is because it ha...
asked by 07.07.2016 / 16:57
1
answer

Delete Object of arraylist in LIBGDX

private List<LadrilloVERDEEntity> LadrilloVERDElist = new ArrayList<LadrilloVERDEEntity>(); LadrilloVERDElist.add(new LadrilloVERDEEntity(world, ladriVerdeTexture,10,3)); LadrilloVERDElist.remove(1);// Acá es donde me marca error...
asked by 12.07.2016 / 17:03
1
answer

Deactivate App as Android administrator

I am wanting to deactivate my application as an administrator from Java by launching an Intent, since with the following code, it launches the Intent to Activate it Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);...
asked by 13.07.2016 / 20:50