Questions tagged as 'java'

1
answer

How to get an IResource from an ICompilationUnit

I'm doing a plugin in eclipse and when I select a java class in the Package Explorer I end up getting an object of type ICompilationUnit , but I need an IResource strong>, what can be done?     
asked by 12.02.2014 / 21:31
1
answer

Use NewRelic to monitor Java applications on Tomcat7

As I monitor PHP and Django, I would like to monitor the "Browser page load time" of applications java . I installed "Java agent self-installer" as described in New Relic documents . It's all right, I'm monitoring various feat...
asked by 19.02.2014 / 16:51
1
answer

Get data from SQLite DB without using ListView [closed]

My code needs to get the data from the database, in short it just needs the following commands: if (cursor.moveToNext()) { Contato contato = new Contato(); contato.setCodigo(cursor.getInt(cursor.getColumnIndex("ID"))); contato.set...
asked by 19.02.2014 / 23:16
2
answers

How to avoid the layout destroyer in the Tabbed Layout when changing the tab?

I'm making a system with tabbed layout and with recycler view, on the first tab are the products, I click on a place the quantity and it marks the product. When I go to the third tab, the marking on the product disappears, how do I stop it? T...
asked by 21.11.2018 / 17:38
1
answer

How to access methods of an array of objects?

I'm doing a college job in which I have to develop a banking system, so I have 3 account types (1 class for each type), so I want to use an array of generic objects. The problem is to access the methods of the objects contained in the array, in...
asked by 28.10.2018 / 00:11
1
answer

How to call another Activity / screen with Java in Totalcross?

I'm developing an application with java through a tool called Totalcross and I need to call another screen / actividy but I do not know what code to do this. Android would be the equivalent of this: public void ChamaRelatorios(View view){...
asked by 26.10.2018 / 16:22
1
answer

Return an address using Google Maps API

I'm finalizing an application where I need to use Google Maps API for two things: select an address from the user's choice (example: user navigates to the desired address and chooses it) and show the map based on the location of a example...
asked by 22.06.2014 / 20:13
1
answer

Floodfill with primefaces. Get click coordinate in p: graphicImage

I want to make an image painting application using java. As it is for the web environment I chose primefaces as a framework for the vast documentation that exists about it. In the meantime I did not find any component that was useful in this...
asked by 21.07.2014 / 19:14
2
answers

Servlet attributes for more than one JSP?

I have a Servlet that does the following: L_sessao.setAttribute("Login", usuario); response.sendRedirect("InicioCliente.jsp"); It sends the user name to the HomeClient.jsp page, on this page I can recover it without any problems. But I need...
asked by 16.10.2018 / 20:33
1
answer

Printing a sequence of 3-by-3 formatted numbers separated by dashes

Let's say I have the following String S = "00-44 48 5555 8361" entry and I need to return this 3-by-3 split string separated by "-" as follows:    Output: 004-448-555-583-61 The number of characters may vary. Below the following sc...
asked by 17.10.2018 / 04:26