Questions tagged as 'java'

1
answer

How do I define size of columns?

I have a query screen, and I would like to set the size of the columns because some columns take up more space than necessary. I thought that if I made a comparison with the title of the column, although it might not be the most oriented way to...
asked by 11.11.2016 / 22:47
1
answer

Apply the SyntheticaBlackEyeLookAndFeel in the application

I'd like to know how I can apply new look and feel s that are not part of JDK. In attempting to apply, you are giving an error in which I did not find an answer that could solve the problem. For example: Synthetica Classy Look and Feel :...
asked by 19.08.2016 / 20:46
1
answer

Which scene builder container can I use to make my desktop application responsive?

I'm starting to study JavaFX and I'm having a question.    Which scene builder container can I use to make my desktop application   be responsive? The only container that came close to what I wanted was the BorderPane, however, it is rest...
asked by 20.08.2016 / 21:05
2
answers

Tables are not created automatically by Hibernate in MySQL

Hibernate can not create the table in the database already created (drugstore). Follow the code below. Hibernate.cfg.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hiberna...
asked by 16.08.2016 / 14:11
1
answer

NoSuchElementException error while executing application

I wrote a simple code in the online java ide (follow code below): import java.util.Scanner; public class HelloWorld { public static void main(String[] args) { String nome = "Filipe"; final double minimo = 15; Scanner...
asked by 20.08.2016 / 16:17
1
answer

Create JPA project without persistence.xml?

I created a project with Swing and JPA and it is working fine, now I want to remove the file persistence.xml and create a class to work on it. I'm researching some way to do this and found in the documentation an example of how to here...
asked by 05.09.2016 / 21:15
1
answer

Define the smallest path in graphs

Hello, I'm starting to see graphs now, I'm trying to create a program where the user enters an adjacency array and the program calculates the smallest possible path from the start node to the end and that all the edges have the same weight, but I...
asked by 09.08.2016 / 02:23
1
answer

Android - Transfer data and change Fragment per Click

Hi, guys. I need help transferring from Fragment when I click on my button inside a ListView. Currently I have a MainActivity (extends AppCompatActivity) to manage the Fragments. Below are some screenshots of how the App is Fragment 1:...
asked by 02.06.2016 / 17:42
1
answer

Check if GPS is enabled on all versions of Android?

I use this code to check if GPS is enabled to display a dialog: LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); boolean GPSEnabled = locationManager.isProviderEnabled(Location...
asked by 27.07.2016 / 16:06
1
answer

Connection to the PL / SQL database through a JAVA application. SAFETY ISO 27001

My java application is currently connecting to a pl / sql database, the username and password of the connection are in the jdbc file:    jdbc.username = xxxxxxx   jdbc.password = xxxxxxx   jdbc.url = xxxxxxxxxxxx and Spring uses this da...
asked by 04.07.2016 / 16:49