Questions tagged as 'java'

1
answer

How can I request two dates in JSF with PrimeFaces and Java

I want to receive two dates, so far I have this: In the xhtml: <h:form id="form"> <h:panelGrid columns="5" cellpadding="5" > <p:outputLabel for="fechaInicio" value="Fecha Inicial:" /> <p:calendar...
asked by 05.05.2017 / 23:06
1
answer

Problem Delete MySQL data from a list in Servlet

I have a problem deleting a record. This is my class Queries where I delete a user. public static int Borrar(int id){ int estado=0; try { Connection con = Consultas.getConnection(); String sql = "call eliminar(?)";...
asked by 05.05.2017 / 23:35
1
answer

Connection to Mysql via SSL

Good morning, everyone. I am developing a program to manage a database created in Mysql. My application is in java and to connect to the database at the moment I was using the driver manager of the mysql connector in an insecure way. Now that I...
asked by 08.05.2017 / 09:33
0
answers

regarding inheritance

How can I make an inheritance example? With a class main and two more classes, since I have one but when joining the classes I get errors in the main class, this is a small part public static Scanner leer= new Scanner(System.in); vo...
asked by 02.05.2017 / 13:50
0
answers

Rotate 3d Cube Java

Good, this is my first question and I do not know if this goes here but I will try to be as clear as possible, I have the following: private final int B_WIDTH = 850; private final int B_HEIGHT = 850; private final int DELAY = 25;...
asked by 30.05.2017 / 23:11
1
answer

Image that is displayed on a JPanel and displayed through a projector?

Hello people, good evening, I wrote to ask for help and information, I have been searching the internet and I did not find anything about the subject, about how I could do a program in java, that meets certain requirements: That I can select...
asked by 31.05.2017 / 04:43
0
answers

It works in NetBeans but JAR does NOT work

Hello, how good everyone is. I need help. I'm doing a project that basically consists of making a chat that communicates by reading files, you can only communicate by executing the same jar several times. It basically consists of allowing the us...
asked by 01.05.2017 / 22:19
1
answer

Problem with the url in JSF and richfaces [closed]

I'm doing a project with JSF and richfaces and I have the following problem: When I advance the page with the "action", the page changes (everything ok), but the url does not. But if you give it back to the same button (because for example it...
asked by 01.05.2017 / 19:18
1
answer

Place the same image in several jframe

I have a program with about 10 jframe, and I have to put in all a logo, which consists of a title and an image. I thought to create an object (I do not know if jpanel, jframe ..) and add it to the jframe of the program, but I do not know how it...
asked by 29.05.2017 / 13:14
1
answer

JTextField NetBeans

Good I would like to know if someone can tell me how I could control with the Keytyped that the user enter only vowels and in another textfield only consonants I have here a reference that only leaves me letters in general and no number or sp...
asked by 05.05.2017 / 10:28