Questions tagged as 'java'

1
answer

Return to the Start Menu when pressing ESC with JavaFx

How can I get my application back to the start menu after pressing ESC . Currently I can use KeyEvent only when some component is associated, such as TextField , Button , etc. I just want to press Esc without any component bein...
asked by 24.06.2015 / 16:05
1
answer

Why does my DriverManager return null pointer?

PostgreSQL 9.4 I run my class Noticias() . Within method public static void main() of class Noticias() the call is made from a getConexao() method; When I run pagecontroller?=p=noticias in the browser...
asked by 20.06.2015 / 19:44
1
answer

How to override the Iterator remove () method?

I created a repository ( RepositorioObjeto ) and it implements the Iterator interface on the object that the repository stores ( Iterator<Objeto> ). So I had to overwrite the methods next() , hasNext() and...
asked by 18.06.2015 / 06:16
1
answer

I18n Springboot from an external library

Gentlemen, on my system I have an external component containing the messagesource bean configured as follows: @Bean public ReloadableResourceBundleMessageSource messageSource() { final ReloadableResourceBundleMessageSource source = new Rel...
asked by 12.06.2018 / 15:23
2
answers

Login with Network User (LDAP)

I have an LDAP server in my company, and a network user is required to log on to the machine. We would like that after the user is already logged in the machine, when using the network or some application in the intranet it is not necessary to i...
asked by 16.09.2014 / 19:40
1
answer

ActionListener does not identify the retrieved button

My goal is to click on the Andar button and then select on the board to which direction the character will be moved, as the image shows: MyAndarbuttonhasActionListenerandistreatedasfollows:publicvoidactionPerformed(ActionEvente){Obje...
asked by 13.06.2018 / 04:28
1
answer

Eclipse Application for Iphone

I need help, and I do not know what to do. I created a very simple application in Eclipse Kepler , I put it on Google Play and it was great. I would like to know if it is possible and how best to " convert " my Android project to IOS . As I...
asked by 12.09.2014 / 10:39
1
answer

Competition problem in java web application

Good evening guys, See the following code: Controller @WebServlet("/testConcurrency") public class TestConcurrency extends HttpServlet { private static final long serialVersionUID = -6124392524678396101L; @EJB(name="bs/UsuarioBS...
asked by 21.09.2014 / 02:26
1
answer

Problems installing jdk7 or 8 on MAC OS 10.6.8 - Snow Leopard

I'm a beginner in Java, and I have a MacBook with Mac OS X 10.6.8 better known as Snow Leopard. I'm trying to install jdk and Netbeans on it and I can not. It tells me that I need MAC OS version 10.7. I have tried all versions of jdk 8...
asked by 05.06.2014 / 20:25
2
answers

Connection refused error when connecting to PostgreSQL

The error happens after entering login and password:    "Deuorg.postgresql.util.PSQLException: Connection refused. Check that   the hostname and port are correct and that the postmaster is accepting   TCP / IP connections. " I'm making the...
asked by 06.06.2014 / 14:13