Questions tagged as 'java'

2
answers

I have a problem in java when executing an sql query to show records in a jtable

This problem occurs to me with this method to show data from a bd in java, because it tells me that the query did not generate any results when I saved in my form and I need to save and that immediately I show the record, this code shows it but...
asked by 20.12.2016 / 00:10
1
answer

How to know if a checkbox is not selected in Java

I know that with "isSelected ()" I can know if the checkbox is selected but, I am interested to know if the checkbox is not selected. I tried doing: chckbxProvincial == null; !chckbxProvincial.isSelected() It does not work for me. I w...
asked by 17.11.2016 / 04:13
1
answer

Send a link between android devices?

I have two devices one is going to share internet the other one is going to connect to the network of the device to enter the internet. What I want is to send information (a link) to the devices that connect to the android that shares the intern...
asked by 17.11.2016 / 17:24
1
answer

Retrieve the focus at the beginning of the TextField if it loses it in Java

Problem photo: Question: If the user clicks once, the focus is automatically placed at the beginning of the TextField, but you can click anywhere in the TextField and it lets you write. How can I make the focus always placed at t...
asked by 19.11.2016 / 01:16
2
answers

Eclipse WindowsBuilder: being able to select only 1 checkbox and not all at once

Hello, I have that program ready but, you can select all the checkboxes at the same time and I do not want that. Is there any way that only 1 can be selected at a time? For example, in my case it would be: Case 1: Provincial, Strip...
asked by 13.11.2016 / 14:34
1
answer

How to create a textbox from a for cycle?

I have two forms in one I put the number of equations and the other should build as many jtextbox as the number I put in the other frame 'public void Mostrar(){ for (int i = 0; i < NumeroDeEcuaciones; i++) { JTextField i...
asked by 04.01.2017 / 23:02
2
answers

recursive algorithm java stacks

someone can explain to me how this exercise works. I can not understand it well. When you enter the reverseStack method, you call the reverseStack method again when you execute the next line, which is a call to another method? import java.ut...
asked by 04.01.2017 / 21:17
2
answers

Priority queue in java

I would like to know what priority this exercise establishes with a priority queue to give that result, the result of removing the element from my head gives me "beloved". How is priority established? Does the compareTo method have someth...
asked by 05.01.2017 / 19:45
1
answer

How to extract a name from my controller?

I have times trying to extract the current user to be able to make a comparison in my controller so that only the user who made it can delete a reservation. But I have not found a way to get that user, any ideas? Controller @RequestMa...
asked by 02.11.2016 / 15:05
2
answers

How to adjust windows to the .fxml that is opening?

Well, what I want to do is that when I click on a certain button, it sends me to another window, well that's what it does, what happens is that I want that window to measure more than the main window (re-size its size) ). Method that sends me...
asked by 03.11.2016 / 18:17