All Questions
Tagged with java-libraries or java
1,916,599 questions
-1
votes
0
answers
31
views
JTabbedPane with JTable data from mysql
When i select the tab tabIndirizzi i want the table display all the records from a myql table.
The connection script is right because it works in other frames, but it doesn't display records in this ...
0
votes
0
answers
58
views
Getting weird results from java string codepoints on a windows machine [duplicate]
I wrote this method:
public String unicodePrint(String input) {
if (input != null && !input.isEmpty()) {
StringBuilder sbTitle = new StringBuilder();
System.err.println(...
Advice
0
votes
9
replies
130
views
Why are there two ways to write print in java (and possibly more)
public class Main {
public static void main(String[] args) {
System.out.println("the first string");
System.out.print("the second string");
}
}
I get that ...
Advice
1
vote
0
replies
39
views
Create install msi java visual studio code
I have built a java app with visual studio code now I want to create an installable file (.msi) -- step by step. I think it is done with Graval or Maven and creating module file(s) but I do not know ...
Advice
2
votes
12
replies
156
views
i don't understand boolean
public class Main {
public static void main(String[] args) {
boolean isLightOn = false;
if (isLightOn == false) {
System.out.println("The light is on.");
} else {...
9
votes
1
answer
142
views
Not exhaustive pattern matching in Java. When it should be
Assume the structure:
sealed class Shape permits Circle, Quadrangle {}
sealed class Quadrangle extends Shape permits Diamond, Rectangle { }
final class Rectangle extends Quadrangle {}
final class ...
0
votes
1
answer
50
views
Selecting intermediate nodes in a TreeGrid
With TreeGrid with a single column, clicking an intermediate node will expand the node but will not select it. It seems that only leaves can be selected.
Here is a minimal example:
package myapp;
...
0
votes
1
answer
42
views
How to reliably wait for dynamic elements loaded via JavaScript (AJAX)?
I am writing UI tests using Selenium WebDriver (Java) and frequently encounter an ElementClickInterceptedException. When trying to click a button or link, the element is covered by overlay components ...
-1
votes
0
answers
48
views
Getting a `java.net.BindException` when calling `java.net.DatagramSocket.connect(java.net.SocketAddress)` [closed]
I just saw the following exception in one of our CI tests, and it's very strange to me:
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.connect0(Native Method)...
Advice
2
votes
3
replies
152
views
Recommendation of material, YouTube channel etc for dentist loving computer science?
I just start to dive in the world of programming. I'm in love with it and would be very nice to have some advice from you guys. I'm a dentist and I do love it, but still I love computer science. So, ...
-1
votes
0
answers
38
views
Spring Cloud Stream Kafka: Batch mode fails to map JSON to Abstract Class DTO (returns byte[] instead of List)
I am facing an issue with Spring Cloud Stream (Kafka Binder) when using batch-mode: true combined with an Abstract Class as the DTO type.
The problem:
In single-record mode (default), the JSON ...
2
votes
0
answers
86
views
Create multiple EntityManagerFactories in parallel [closed]
I have to create ~150 EntityManagerFactories.
I'm using
hibernate-commons-annotations-5.1.2.Final
hibernate-core-5.6.14.Final
hibernate-envers-5.6.14.Final
hibernate-search-backend-elasticsearch-6.1.8....
Advice
2
votes
4
replies
100
views
How should i continue learning java programming
I need your advice.
I am learning Java programming. I know the Java basics, object oriented programming and also Swing and Awt. These days I understand that I have to learn algorithms and data ...
0
votes
0
answers
110
views
Java Socket does not honor timeout
Tried following code with a wrong serverAddress:
final int CONNECT_TIMEOUT = 5000; // 5000 ms = 5 seconds
final int SO_TIMEOUT = 5000;
try (Socket socket = new Socket()) {
socket.setSoTimeout(...
1
vote
1
answer
81
views
The import org.springframework.boot.autoconfigure.jdbc cannot be resolved
so I've been following this tutorial to build a small website: https://medium.com/@alexandre.therrien3/java-spring-tutorial-the-only-tutorial-you-will-need-to-get-started-vs-code-13413e661db5
I used ...