Questions tagged as 'java'

1
answer

Records of a table and look for them in another Access

I insert the image so that it looks correctly. To say also that in the t1 there may be data in the column minutes that are not exact for example Minute 17 second 32 but this for me is an erroneous record and should not appear in table t3....
asked by 05.04.2016 / 10:32
1
answer

Check several options without repeating [closed]

Imagine the following that I have to verify the following entries: Girl be Blonde Chica2 be Brunette Be 18 years old be from Madrid I have the following variables String chica; String chica2; String ciudad; Integer edad; And th...
asked by 09.04.2016 / 18:45
2
answers

While looping without obeying conditional

Good, I'm doing a code from two different classes (two different * .java elements), in the first ('ball') I set the attributes and methods: public class Pelota { byte posX = 0; byte posY = 0; byte peso = 5; public Pelota(){ th...
asked by 09.04.2016 / 09:24
1
answer

How do I listen to an event volume buttons on android?

For example, let's say that in MainActivity.class I have a TextView that if we press the volume key + automatically in TextView will show a 1 and if we keep pressing the volume key + it will increase, the opposite will happe...
asked by 08.10.2018 / 04:15
1
answer

Center buttons and TxtPane

I'm starting to use Eclipse to make a desktop application and I'm a bit of a fish. I would like to know how I can find the way that when expanding the screen the rest of the objects also move. Is there any way to do it? my code is as follo...
asked by 23.10.2018 / 21:16
1
answer

How to pass a local project made with Gradle to another computer?

I do not know if I explain myself in my question. Goes again: I have made a web page with the Spring MVC Framework and I had to use Gradle for the management of the dependencies (because I was following a course) of Spring and Spring Boot. Al...
asked by 23.10.2018 / 19:59
2
answers

How do I make the lock can not be opened anymore? Java POO

   Implement the Lock class. Then verify:       a. When you enter a correct password, open       b. When you enter an incorrect password, it will not open       c. If you enter the key incorrectly the maximum amount of   attempts, you can not...
asked by 30.10.2018 / 22:02
1
answer

How to fill a combobox in Netbeans with data from a table in mysql

They could help me fill out a combo box with the data of a table in mysql. The problem is that the table has a iD , a name and a unit. But when filling the combobox I need the names to appear; and when selecting one, what I really need is...
asked by 22.11.2018 / 18:47
1
answer

Error sending an email

Mail Class that sends the mail package com.example.demo.controllers; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mail.SimpleMailMessage; import org.springframework.mail.javamail.JavaMailSender; i...
asked by 22.11.2018 / 20:31
1
answer

Calculate difference between 2 JAVA dates [closed]

I have searched the browser and others and can not find the solution I'm looking for, so I mention it here. I have two parameters: Date1 - > It is the date in which a person registers in the company. Date2 - > It is the date...
asked by 22.11.2018 / 14:24