Questions tagged as 'java'

2
answers

Android change the color of a button for 1second

I have a college job where I have to create a Genius game on Android. Where there are 4 buttons and for 1 second each button will blink by changing its background color so the user will have to perform the same color sequence by pressing the but...
asked by 26.11.2018 / 16:23
1
answer

Problem with JSF2 + CDI + Tomcat

Personal speech, I'm working with JSF and I've packed here. I have a simple project for now, with a page with a form that has an enum attribute on it, ie when the page loads it has a selectItems there that should come loaded from the enum. Home...
asked by 22.10.2018 / 21:22
1
answer

null object reference [duplicate]

Logcat java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean)' on a null object reference Adapter code @Override public View...
asked by 25.10.2018 / 01:23
1
answer

RecyclerView error: can not find symbol variable when Running Project Android Studio

My project to axecutar appears this error: Error:(417, 63) error: cannot find symbol variable testando Error Location: TheappgradlehasalltheimportsforthecorrectRecyclerViewusage:applyplugin:'com.android.application'android{compileSdkVer...
asked by 05.11.2018 / 12:16
2
answers

Use 2 versions of Java

My company uses an application that no longer has maintenance and can not change, it runs with Java 6.0.17, however in all other applications newer versions of Java are needed. As a solution I made a .bat file to run the old version on...
asked by 19.12.2018 / 16:23
2
answers

How to form a number to have 10 decimal places? [closed]

I have a sum operation and I have to display the result in a number with 10 decimal places precision. Any ideas?     
asked by 30.05.2017 / 01:45
1
answer

Problem picking screen date

I have a small error getting the date of a jtextfield, the error occurs:    String can not be converted to date Follow my code: public TelaControle getVendaFromTela() throws ParseException { Venda vDaTela = new Venda(); vDaTel...
asked by 15.04.2017 / 17:57
1
answer

Run windows resources with Java [closed]

I am developing an NFe issuer and have an option in windows that allows you to select which certificate to use. I would like to know if anyone knows how to call this feature from windows using Java.     
asked by 02.09.2016 / 13:42
1
answer

Error, Can not save to bank using hibernate

Good afternoon, Person, I need your help! I have a problem in my project, my hibernate is working on creating tables but when I did test to try to save it does not work and the following error appears in jUnit ( org.hibernate.MappingException: U...
asked by 10.09.2016 / 06:38
1
answer

How to run an application in multiple threads?

I'm developing an application with interface made by Swing. The purpose of the application is to simulate a computer network in which I will monitor using the InetAddress implementation. Well, I created my interface, where the user regist...
asked by 25.08.2016 / 15:15