Questions tagged as 'java'

1
answer

Error in unit tests

I developed a game in Java and I have to do unit tests. I do them and I get an error in the tests but I do not understand why, if the game works as expected. The test code is as follows: package Frames; import org.junit.After; import org.juni...
asked by 25.07.2017 / 04:04
2
answers

Search between dates JDateChoser java mysql

I get the following error:    you have an error in your sql syntax check the manual that corresponds   to your mariadb server version for right syntax to use near INNER JOIN   medication ON detail_compra.idMedicamento = medicamento.idMedicame...
asked by 06.08.2017 / 06:25
1
answer

Error downloading project in Spring from the repository

Hello Good afternoon to all, what happens is that I can not execute a project that comes down from a repository, but it throws me this error: jul 05, 2017 3:41:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin ADVERTENCIA: [SetProp...
asked by 05.07.2017 / 20:56
1
answer
1
answer

GlassFish Shared Libraries

Good morning, I would like to know if you can help me and explain how to make shared libraries on the glassfish server, not to leave them inside my application but as a reference on the server, I know it in Weblogic and Websphere but I have no i...
asked by 11.07.2017 / 18:49
2
answers

Make cast of complete apps

I've seen that there is a lot of code on the internet to add cast functionality to an Android app. However, they all serve to make multimedia content cast, but I would like to cast the entire app (that is, to see the app on television as it is)....
asked by 07.07.2017 / 06:37
1
answer

Detect Android 4.0 and 7.0 language

For an application, with the intention of detecting when the device is in Spanish, I used the following if : if(Locale.getDefault().getLanguage()=="es") However, although this has worked for me in the Android Studio (7.0) emulator, ch...
asked by 07.07.2017 / 05:40
1
answer

Gui Java Keyboard events

I have the following code JPanel pb = new JPanel(); JLabel b = new JLabel("Buscar por ..."); JTextField bt = new JTextField(10); JButton bb = new JButton("Lupa"); // bb.setBackground(color); bb.addActionListener(new Busqu...
asked by 14.07.2017 / 15:12
1
answer

Remove space between LinearLayout and their children

My code is as follows: <LinearLayout android:background="#ea1a1a" android:weightSum="3" android:layout_width="match_parent" android:layout_height="wrap_content"> <Button androi...
asked by 26.06.2017 / 21:36
1
answer

The app is closed

The app is running but pressing a button closes the application. JAVA code: package com.example.calculadora.calculadorabasica; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View;...
asked by 14.06.2017 / 07:20