Questions tagged as 'java'

0
answers

Configure log4j 2 and write to .log file

You will see, I have a web app that runs on tomcat 8.5.34, I have configured log4j as follows:  log4j.xml <?xml version="1.0" encoding="UTF-8"?> <Configuration status="info"> <Properties> <Property nam...
asked by 19.10.2018 / 20:57
0
answers

I can not fill a simple Java array

Something simple and simple. switch(menu_ini) { case 1: // Ingresar datos!. int i; for (i = 1; i == item.length; i++) {...
asked by 20.10.2018 / 18:03
0
answers

My selectOneRadio does not work on jsf and primefaces, please help!

I hope and you can help me what happens is that I'm having a problem when I want to set the values in a selectOneRadio, what I want more than anything is that when you give a button to edit this same load what the user inserted, but I already pr...
asked by 18.10.2018 / 16:09
1
answer

How to implement SharedReferences in Android Studio?

Good day, I have a code model using intent in the following way and I want to pass it, I do not know how to use SharedReferences unidades=(EditText)findViewById(R.id.editTextunidades); Intent miinten = new Intent(Calculate.this...
asked by 20.10.2018 / 18:41
1
answer

how do you get the values of x and y? How do you determine the end of the screen?

I am doing some automatic tests of an application, I use uiautomatorviewer but it does not locate the arrow button to go backwards. I want to click with some coordinates, but depending on the device, these coordinates vary. My idea was to put...
asked by 18.10.2018 / 15:25
1
answer

how do I use setContentView for an instance of ZBarScanner in a fragment

In an app that I made, on a qr reader, the first code block shown in onCreate () runs in the MainActivity.java file. Now in the code block next. in onCreateView () implement in a fragment, and I can not find the code that replaces .setContentVie...
asked by 28.10.2018 / 16:40
0
answers

How can I repeat a Java Swing function?

Good I want to repeat my function that generates a random position in the frame and moves me a place label. But I execute function 1 only once. Does anyone have a solution? I leave the code, my idea is that when you press a -button, the function...
asked by 28.10.2018 / 22:34
0
answers

Load values in JAVA nested combobox

Good day have all hope I can help with this problem. I have 3 tables which are Price, Products and Customers List, Price List is related to products and customers, to add a price list I have to assign a customer and a product with their respecti...
asked by 19.10.2018 / 19:10
0
answers

error 'unable to load script from assets index.android.bundle'

Hello I'm starting a project for android with react-native, I have a problem when starting the emulator with android studio everything is perfect, but at the time of starting the project I get a red screen with an error: 'unable to load script f...
asked by 17.10.2018 / 21:56
1
answer

Exception in thread "main" java.lang.ArithmeticException: / by zero

Yes, I know it can not be divided by zero. But I want it to show me a JOption, not that the console throw me an error. It is understood? I must make a switch that when the user indicates the number the switch performs the corresponding function....
asked by 17.10.2018 / 22:25