Category "java"

Selection Border in JavaFX. Wanting to change default behavior with CSS

I am using validation that puts a red border around my TextFields nameTF.setStyle("-fx-text-box-border: red;"); And set it back to default using nameTF.setStyle

Java JDK VScode issues

I installed java jdk using sdkman on my windows machine. I am using wsl for this purpose. However, I need to add this to my VScode and when I look at the insta

Hibernate / Spring Data - get executed sql queries count

I'm working on presentation in which I would like to show difference in number of executed sql queries between deleteByPost() method with and without custom que

How do I create a frame with images to act as a tool tip in Java?

I've been struggling with an issue for 2 days now and I keep running into walls. When I mouse over a task on my first window I want another frame to pop up and

i'm receiving SNMP traps from network device (switchs), but how can i identify that this trap is coming from which device (switch)

I'm receiving SNMP traps from network device (switches), but how can I identify that this trap is coming from which device (switch). because trap containing onl

endpoint_failure (context canceled) resulting in duplicate call to REST Endpoint

Am invoking an REST endpoint from another service using restTemplate.exchange. The endpoint that receives the request invokes DB and fetches around 1.5 mil rec

Applovin Test Ads are not showing in android application in java

i am integrating applovin ads in my app but test ads are not showing in my app even i added the line in which we add GAID but applovin test ads are not showing.

JWT Signing in NodeJS and but unable to verify in Java

I want to pass a JWT token from a NodeJS service to another service in Java. However, based on the what I've tried, the token is always invalid whenever I try t

ByteBuddy Agent to print method elapsed time

I'm trying to measure the time for certains method of some specific classes. I'm using ByteBuddy and I created the following interceptor class: public class Ti

Drools-Equivalent of the "not in" SQL

I have two tables A and B. I want to update column A in table A if it doesn't have a match with column B in table B. I've written the following, but it doesn't

Is Apache EventListenerSupport thread safe?

Summary The org.apache.commons.lang3.event.EventListenerSupport is used in order to fire when some class performs a certain operation and wants to inform all li

pub.document.sortDocuments not sorting

I am stuck, I had this working last week now I have changed something and it will not work! I have a simple flow service as follows: pub.file.getFile pub.f

Spring Boot container cannot connect to My SQL container

I have read all questions related the issue and controlled all points. It seems everything is ok with my codes but it doesn't connect anyway. I got CONNECTION R

Why 1534236469 can't pass [closed]

I think 1534236469 out of range! Leetcode: 7. Reverse Integer I can't pass the test input 1534236469. why? the return range is[Integer.MAX_VAL

Java Project for vscode doesn't works fine

Whenever I create a new maven project in vscode, the Java Project extension doesn't update as the file explorer does, so I have to manually clean the workspace

Running STIGViewer on a Mac

I'm trying to run DISA's STIGViewer on my Mac. It is a JAR file, and I have Java installed on my system. Double-clicking on the file does not work, and neither

Reactor Mono, how to synch process (using .map()) and return Mono<void> from response.setComplete()

I have this method which gets redirection url and then redirect to that url private Mono<Void> redirectToUrl(ServerHttpResponse response, String status

How do I include the sat4j library in eclipse java IDE?

I've tried so many times to import the sat4j library (https://www.sat4j.org/index.php) into the java IDE eclipse by adding the jar files in the lib folder which

How to save and load multiple arrays in android Java?

I'm very new to Android Dev, within this month, and I'm attempting to create a simple app to store 'medication' that a user needs to take each day. Currently, I

Java 17 | Need Help to update to Gson 2.9.0 and disableJdkUnsafe

I'm trying to Update my Gson version to 2.9.0 and disableJdkUnsafe, Can I get help with below error. This is from a broken test when I updated my GsonBuilder. T