Questions tagged as 'java'

2
answers

Upload several txt files to FTP with Java

Greetings, and thanks in advance. The question is that I have been doing a small program in Java to upload several txt files to an FTP, I have managed to upload it with one specifying its path and name.Extension, but I want to do everything for...
asked by 26.05.2017 / 12:17
1
answer

Add text to a video played on a JFXPanel

I'm doing a desktop application in which I play a video in a JFXPanel (it's what I found to play videos) and it shows text about the video, user-defined text, overwriting the 'paint' method of the floor JFXPanel the video, is there any way to pu...
asked by 03.04.2017 / 00:57
1
answer

response.sendRedirect throws bug

I have a simple web page with jsp, when I close session use: request.getSession().invalidate(); response.sendRedirect(request.getContextPath() + "/index.jsp"); To delete the session and redirect to the main page. But if the user clicks b...
asked by 16.03.2017 / 17:08
1
answer

How do I show a table of multiply in java with JPanel and JFrame form?

I want that when I press a button I display a multiplication table but it does not throw me errors and I do not know if it is doing well. import java.awt.Graphics; import java.awt.event.ContainerListener; import java.util.Scanner; import javax...
asked by 02.04.2017 / 02:20
3
answers

Running a Java executable jar on a PC [closed]

A question to get rid of doubts, I have an executable jar that runs without problem on my PC. To make it run on another PC, I need to know what to install. Continuing with the theme, java's own libraries are all generated in the jar, that's the...
asked by 16.03.2017 / 20:45
1
answer

Error inserting data with Hibernate

I'm trying to insert data in two tables with a one-to-many mapped with Hibernate in Netbeans, but when I run the application I get the following error:    run:   Mar 11, 2017 12:28:20 AM org.hibernate.annotations.common.reflection.java...
asked by 11.03.2017 / 05:54
3
answers

Class similar to HashMap that provides get (int index) in Java

I am looking for a Java class that allows me to store two variables of the type that are joining them, but that also allows me to access them in an ascending / descending way or by index. Searching I found the HashMap class, which fulfills th...
asked by 16.03.2017 / 10:49
2
answers

Redirect to URL in java REST? or not redirect?

I understand that Rest is an architecture between a server and a client, httpRequest and httpResponse, it is the topic that we are seeing in a course that I am doing. The problem is that I'm doing in Rest a code that inserts data through paramet...
asked by 06.03.2017 / 18:26
1
answer

C check when a RadioButton has not been selected

I am doing a questionnaire, but I can not achieve that, when in a RadioGroup determined none of the options are marked, a Toast appears with an error message, I already have the Toast created, and the variables also, but I c...
asked by 05.03.2017 / 23:19
1
answer

Submenu in Java and conditional switch [closed]

I have a problem with my code, the problem arises when I leave a Submenu to return to the main menu, what happens is that when I leave the Submenu I am executing the switch default and I do not understand why who does it. Main Menu Code: in...
asked by 12.03.2017 / 19:00