Questions tagged as 'java'

1
answer

How to send via post in java?

In a system all the data is exposed via url due to the method of sending: GET I need to send via POST code: <!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Insert title here</title> </...
asked by 23.08.2018 / 01:37
1
answer

Type mismatch: can not convert from Unmarshaller to Pool.Unmarshaller

I'm getting this error message in eclipse in a Rest project client.java code package cliente; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net...
asked by 17.08.2018 / 23:23
1
answer

Screen navigation (JavaFX) [closed]

I have a calendar program and on the main screen I have the option of Add Contact. When it is clicked a new screen is opened so that you can enter the data. When the Save button on this second screen is activated, it saves the data correctly and...
asked by 08.08.2018 / 00:14
1
answer

How does it work to dynamically put content making an Android application natively?

I'm seeing a bit of mobile development (Android), and I saw that the design is done using XML, and from what I've seen, it seems to have no loop tag, to repeat similar structures, and generate some content from dynamic form. How would you do...
asked by 06.09.2018 / 21:11
1
answer

How can I add 2 buttons with submenu in Android Studio

I'd like to dynamically add options to my screen menu on Android, I've seen several examples, but all turned to a single button. Assuming I have it. override fun onCreateOptionsMenu(menu: Menu, menuInflater: MenuInflater) { menu.cl...
asked by 16.07.2018 / 20:01
2
answers

Modeling Spring JPA Person - PersonFisica - Official

I did the data modeling (UML) but at the time of implementation I'm doubtful how to do it. I wanted you to have only one Person table. In this person table I would have the field tipoPessoa("p","f") and the fields if the person is c...
asked by 16.07.2018 / 06:03
1
answer

String in findViewById

Hello, I was wondering if you can use a string in findViewById. I have an app with several imageview that when calling a call to the camera's camera. So that I do not need to put this intent and its startActivityforResult for each imageview, I t...
asked by 04.07.2018 / 21:16
1
answer

Counter zeroing for no reason

I have a method in which every time it fires, in addition to performing other operations, a certain counter cont must be incremented and then call another method in which it will check if the counter is greater than zero. The problem...
asked by 11.07.2018 / 19:58
1
answer

chatmulticast in java

I have a small problem in this code below in java. It's a multicast chat Main error is in the commented constructor. import java.awt.event.KeyEvent; import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress;...
asked by 31.05.2018 / 21:17
1
answer

Access a specific component within a listview

I have a list of music with a favorite icon, when the user clicks on this icon I want to change the color of the icon as the action to enjoy. In this framework I have an Activity, a listView in this Activity, an Adapter class that does the in...
asked by 29.05.2018 / 18:51