Questions tagged as 'java'

1
answer

How to tell if the cursor is over a given component in javaFX

I have a component in javaFX and would like to know if the cursor is positioned on it. Is there a function for this? I tried to create a boolean that stores this using the setOnMouseEntered and setOnMouseExited events, ho...
asked by 15.09.2017 / 20:37
1
answer

java response json out of order

I'm doing an API in java to be consumed by Excel. I'm doing a select from the bank bringing the columns in the right order, but when it arrives in Excel comes in a crazy order. I also made a method with: Class.forName("className").getDeclar...
asked by 24.08.2017 / 22:25
1
answer

JDBC Java Web Connection and SQL Server 2014

I'm starting to develop a portal using JAVA Web and database in SQL Server 2014. I've never worked with SQL Server and there's a problem that I can not find the solution. Here's the problem: The connection usually happens through this clas...
asked by 31.07.2017 / 12:29
1
answer

Show sql generated by JPA / Hibernate

Is there any way to show the SQL generated by JPA / Hibernate without being enabled by the <property name="hibernate.show_sql" value="true"/> property? The difficulty is that I need to monitor only one query, and if I turn on...
asked by 20.07.2017 / 18:38
1
answer

how to make a controller for the index page with Spring Boot

I have a problem. I am not able to make a controller that loads the index page, and the index.html page is in: sr / main / resources / templates. Controller package ao.com.biblioteca.controller; import org.springframework.stereotype.Contro...
asked by 21.07.2017 / 12:59
1
answer

Display multiple columns [closed]

I am developing a basic program in Java Application (Desktop) that performs a simple registration and displays in another screen through a JTable the data recorded in it. My problem is that there are 24 columns to display in this table, so I...
asked by 19.07.2017 / 17:49
1
answer

How to prevent onItemSelected from being called when using setSelection?

I have ListView and within each item it loads a Spinner with some information. The way I want it to work (Expectation): The first time you load Activity , display the user a list and within each item of it, have a Spi...
asked by 19.07.2017 / 15:48
1
answer

Date field not saved in Spring and Angular database

I am doing a small CRUD and when I save the data the dataTime and DateText fields do not save in the database. PS: I made the debug and the dates are going through the save method. <div class="form-group col-md-4...
asked by 25.07.2017 / 16:06
1
answer

How to make an authenticated user see the posts of another authenticated user?

When I get the reference from the node in the database and I use the child to return the current user's data, it works cool, but I do not know how to implement the feedback of other authenticated users in the app. postagemRef = database.getRefe...
asked by 23.07.2017 / 03:47
1
answer

Popular dropdown list with database in Spring MVC Controller

I'm having a hard time finding a way to populate a dropdown on the Controller and move on to the view. Because this way I'm doing when I enter the screen to update the dropdown does not return with the value it already was. I'm doing this (co...
asked by 26.07.2017 / 16:19