Questions tagged as 'java'

0
answers

How to get the Controller VRaptor Result with Jquery?

I have a controller. NewsletterController.java @Controller public class NewsletterController{ @Inject private Result result; @Post("/gravarEmail") public void gravarEmail(String email){ String me...
asked by 08.03.2016 / 21:46
0
answers

Error rotating the screen with fragments 'open'

I'm using the simple fragment model. There is one List , and another Viewer . FragmentActivity : if(pFragVisualizar==null){ pFragVisualizar = new FragVisualizar(); pFragVisualizar.configuraVisualizador(dados); }...
asked by 09.03.2016 / 15:50
1
answer

Report title in IReport

In the reports I create in IReport, the title area only exits on the first page and the page header area exits on all pages. How can I make the title quit on all pages and the page header exit only on the first page? In the "Print When Exp...
asked by 09.03.2016 / 15:13
0
answers

How to animate button before it is clicked

Here's an animation I'm using in my project, but it gets animated as soon as it's clicked: Button refresh = (Button)findViewById(R.id.refresh); refresh.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View...
asked by 08.03.2016 / 12:22
1
answer

Error injecting Service into an @component

Set an example bean: @Component public class SimulationModelFactory { and within the class I'm injecting my service example: @Autowired private SimulationFlowService simulationFlowService; Service always gets null     
asked by 09.03.2016 / 18:44
0
answers

Create JAR with an included txt

I have a program that saves the contacts in a simple txt file, but when I want to run the jar on another machine (I generate the jar using the netbeans package for store), when I run on another machine it does not find txt. In android I can d...
asked by 08.03.2016 / 12:23
3
answers

How to generate random arrays without repeated numbers on the same line?

I want to store random numbers from 1 to 60 in an array. When there are equal numbers in the rows, it is to generate another random number. Type, can not be: 11 55 55 43 49 30, but should be 11 55 52 43 49 30. There should be no repetitions....
asked by 27.08.2015 / 06:35
2
answers

Error fetching another screen

I'm trying to call a second screen in Android Studio, but it's giving an error. This is the Main Class: package br.com.olamundo.parametros; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.Float...
asked by 13.03.2016 / 18:05
2
answers

JSP information for another JSP

Example: I have a JSP A, which has some information and a button. When you press this button, JSP A sends variables to B (like id, name ...). B would use this information and refresh the page without redirecting. Is there any way to do this?   ...
asked by 08.04.2016 / 03:05
0
answers

Implement action for save button

I'm new to programming and built the image GUI from an example from the college book, but the save button has no functionality. And I ask you to implement the button to save some code that will save the data entered in a table. //mainclassim...
asked by 07.03.2016 / 04:30