Questions tagged as 'java'

1
answer

Code with error in Switch Case

I have to do the following exercise:    Make a Java program that requests the total amount spent by the client from   a shop, print the payment options, request the desired option, and   prints the total value of the installments (if any).  ...
asked by 03.10.2017 / 00:07
1
answer

How to take one field time and add 3 minutes in another?

I would like to know how to get the time from the txt_hora field and go to txt_hora2 by adding +3 minutes. In case in field one would be 9:50 and switch to the other 9:53. Here I enter the Time Andafterclicking"GO" it falls...
asked by 02.10.2017 / 15:00
2
answers

Show the highest average of all calculated averages

I created an algorithm to calculate the average of a surfer, but he can get as many waves as he wants if he wants to stop the algorithm has to present the highest average of those calculated and pass to the second surfer. Does anyone know how I...
asked by 21.09.2017 / 15:19
1
answer

Vector for JTextField [closed]

I have to add 43 fields of text that the user will fill out the ones that will be used to have a total and that total will be used in my formula and I could not find a solution to reduce those lines that I did manually by assigning a variable ea...
asked by 26.09.2017 / 16:34
3
answers

Passing Attributes from a Servlet to a JSP [Closed]

Hello. I'm developing a system where the user clicks an edit button and then opens the edit page with the attributes of the object already filled in the text boxes. In my servlet, I'm using the following logic: Moto escolhida = new Moto();...
asked by 03.10.2017 / 13:50
1
answer

Error inserting bank data into JTable

I have a problem loading data into a JTable, using BD Derby, the database connection works the most when trying to open the JFrame Cad_Usuarios the error below appears: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at...
asked by 02.10.2017 / 03:42
1
answer

Java - How do I leave the Permanent Connection IP with PostGreSQL?

Good morning, Every time my machine connects to the internet, its IP changes. My question is ... How do I always get access to PostGreSQL even though the IP of my machine changes? public class ConectarDB { private static Connection con = n...
asked by 13.12.2015 / 15:55
2
answers

Doubts about applet's 'param' and an archive pointing to a jar

I can not understand what this is in this applet, does anyone explain? And why does the applet have that archive that points to a jar? Why stop? <applet code="TesteApplet.class" archive="agora.jar" width=160 height=120> <param nam...
asked by 18.04.2016 / 14:42
1
answer

Doubt on receiving data [closed]

I have a system on one computer that will send data to another system on another computer. The system that will receive the data will need to read this data in real time and automatically. But my question in building the system is how can I m...
asked by 17.02.2016 / 16:17
1
answer

How to call a JFrame from another JFrame with different classes

I am creating a little game of stone paper and scissors and I would like to know how I call JFrame of another JFrame , except that of different classes. Or maybe I should do it in different methods? I tried to do it here but it alwa...
asked by 15.03.2016 / 05:55