Questions tagged as 'java'

2
answers

Annotation problem for mapping

I'm having errors due to my mapping to my program in java, I'm still starting to mess with annotation (please forgive possible stupid errors xD). The error should be in @ ManyToOne / OneToMany ... I have two tables, ACCOUNT and PLAYER. After...
asked by 18.11.2016 / 16:54
1
answer

Adjust columns according to available JTable size

I have a JTable where the user can hide and then display one or more columns again. I found a code that adjusts the column according to the size of the "value" from Camp". I call this method as soon as populo to JTable . public...
asked by 07.07.2016 / 19:20
1
answer

Identify a person through rules (IA)

I need a system that identifies a person (exactly a person) through rules (in this case, habits of such a person) but my AI knowledge is very shallow. Is there any appropriate technique for this? Preferably, it is applicable in languages such as...
asked by 05.07.2016 / 00:24
1
answer

Help with connection to database sql server 2008 and android

I followed a tutorial on the connection of Android Studio with SQL Server 2008 r2 (already existing), with which I could make the connection normally, but I have a problem. I can make the connection to the bank if the connection to the bank is s...
asked by 22.06.2016 / 14:23
1
answer

Does Firebase Analytics need to be started on all activities?

I'm at an awkward stalemate. I'm creating the custom of using Firebase in my project, but I do not understand how to use it. Do I need to put the Firebase Analytics code in all activities or just one?     
asked by 02.12.2016 / 01:38
1
answer

Class variable in Java have the same behavior as in Ruby?

In Ruby a class variable that is modified by an object ends up modifying the value of all other objects instead of making a copy of that value. Does this also occur in Java?     
asked by 27.11.2016 / 02:54
2
answers

Open an activity with onMarkerClick

I want to open a new activity when I click on the marker, but I click and it is not opening, I did something like this: @Override public boolean onMarkerClick (final Marker marker){ if (marker.equals("Ponto A")){ Intent i = new Int...
asked by 31.12.2016 / 22:21
1
answer

I can not do a click counter on a JButton

I'm developing a "game" where there is a button on the screen and the player has to click the button several times to make money. For this, I'm doing a kind of click counter, where%% is the number of clicks, and the number of clicks is equivalen...
asked by 16.06.2016 / 17:41
1
answer

Error inflating class android.support.design.widget.NavigationView

This is working correctly on most devices, however on other devices the following error is occurring:   android.view.InflateException: Binary XML file line # 16: Error inflating class android.support.design.widget.NavigationView I've alre...
asked by 15.06.2016 / 04:01
1
answer

Save entity rest using @oneToMany

I have the following entities generated by jHipster using java with oneToMany relationship: Product @Entity @Table(name = "produto") public class Produto implements Serializable { private static final long serialVersionUID = 1L; @Id @Ge...
asked by 16.06.2016 / 16:20