Questions tagged as 'java'

1
answer

JButton how to get the Button Text inside event

Hello, I need to create n JButtons, the creation criteria is a table in the database that has n items. I have to create a button for each item and when I click the button it has to show me a message of the number of that item. Creating the butto...
asked by 11.06.2016 / 20:37
1
answer

Open another activity silently

It is as follows; I added a button to open an activity from another app. Is it possible to open only silently, that is, anonymous, invisible, minimized, or better, without the user noticing!? Intent launchIntent = getPackageManager().getLaunch...
asked by 13.06.2016 / 02:35
1
answer

The separator is going through the reset button

I wanted the tab to stop just below the FREE THROW buttons, not at the bottom of the screen. How do I correct so that the design is responsive? Why is the content disorganized when the screen is in landscape mode? <?xmlversion="1.0" e...
asked by 05.08.2016 / 07:28
2
answers

Error generating pdf report (Jasper)

So guys when I run my program it brings me the following error (and yes the file is in place): net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: C:\Users\brenno.mello\Documents\Projeto%20SPED\coffeepot-br-sped-fiscal\targ...
asked by 02.08.2016 / 14:06
2
answers

How to update row in dataTable? (Primefaces)

Hey guys? Please, can some ninja javeiro help me with this case? I have a dataTable and I need to know how to give an update in a single row after some event, such as a click on a commandButton. I studied a bit about 'omnifaces' before anyone...
asked by 03.06.2016 / 20:06
1
answer

Because "my program" did not increment the value 5 being that it less than 5.5

I'm starting the programming and always try to unravel the things that are not clear, so far I have, but here I tried and tried and could not understand why the program did not increase the value 5 being that less than 5.5 public class Primo {...
asked by 04.06.2016 / 04:40
1
answer

Calculator error created in android studio

I started doing some things with in android studio. The error you are giving is in a simple calculator and does not do the correct operations, for example: 1 + 2 = 1,1 + 8 = 1, and others that are giving 0. I have two textview , operation...
asked by 19.06.2016 / 08:47
1
answer

Static method with object as parameter

I am creating a very simple system for registering students. I made a Aluno class as follows: public class Aluno { private String nome; private String matricula; private String curso; private int periodo; private Str...
asked by 24.05.2016 / 17:02
1
answer

TimerTask error: Looper.prepare () not called

I received this error.    Can not create handler inside thread that has not called Looper.prepare () Aim is to repeat the function that receives the map from 1000 to 1000 thousandths of a second. Timer t = new Timer(); //Set the schedul...
asked by 03.07.2016 / 15:24
1
answer

Java does not compile .java [closed]

Java does not compile return error can not find nor load main class com.sun.tools.javac.Main.     
asked by 02.07.2016 / 17:21