Questions tagged as 'java'

1
answer

Enable and disable JButton

I have two JButton in my window, btnCalcular and btnConfirmar . btnCalcular computes some values in the window, and btnConfirmar takes those values and stores them elsewhere. The issue is that obligatorily I...
asked by 16.04.2016 / 17:10
3
answers

JavaScript does not follow in algorithm flow

Example: $("#segundaFeira").change(function(){ valorSegundaFeira = calcularJornadaDeTrabalho(this.value); var x = valorFinalJornadaTrabalho(); alert(x); }); Note that the global variable valorSegundaFeira is...
asked by 05.11.2015 / 13:39
2
answers

Restuful server instance on tomcat

Staff developed an app - link I'm using a restfull server connection with the postgree database in hibernate. This server is hosted in bitname on a tomcat, but sometimes for some reason it drops and it is necessary to restart the server...
asked by 05.11.2015 / 19:32
1
answer

Intercept methods

I need to create a class to intercept the methods of a certain class in order to monitor the execution time, to find out where the bottleneck of my transactions is.     
asked by 19.01.2015 / 13:24
1
answer

Problem retrieving item clicked on ListActivity and returning it to previous activity

I have an Activity where I call another Activity using startActivityForResult . In the Activity that was called, I have a list filled by products already registered. In that list, you needed to click on any of the products in the list to r...
asked by 31.10.2014 / 14:47
1
answer

Eclipse boot problem

I just downloaded Eclipse (because I'm going to mess with Android development), but when trying to open it appears the message below. The JRE is installed on my machine because I can use NetBeans normally, without problems. Detail is that...
asked by 13.04.2014 / 04:48
2
answers

How to get id from an ImageView in android?

How do I get an id of an image from an ImageView. Example, for me to set an image in my ImageView I use the following code.    imageView.setImageResource (R.drawable.icone_x); How do I reverse the process? For example, I want to get an in...
asked by 27.10.2014 / 20:12
4
answers

How to use AsyncTask on Android?

I'm trying to make my application download an XML (RSS Feed) and read its tags to display it on the home screen. However, the application closes after downloading before attempting to start the onPostExecute method of AsyncTask getFeed and A...
asked by 25.03.2014 / 02:33
2
answers

How to "capture" Webservice (XML) data in Java SE?

I am a layman in the subject webservice and I need to capture the data of a webservice that returns a little information. The webservice is this: link I found a lot of information on the internet but only for Java EE and in very complex...
asked by 24.03.2014 / 02:50
1
answer

Fragment adapter issues

I'm having a problem with adapter in Fragment. My Fragment: public class HomeActivity extends Fragment { private final DataBaseHandler db = new DataBaseHandler(getActivity()); public View onCreateView(LayoutInflater inflater, View...
asked by 03.06.2014 / 03:31