query
stringlengths
1
74.9k
positive
stringlengths
0
174k
negative
stringlengths
1
174k
label
float64
1
1
task_name
stringclasses
33 values
JTable with autoresize, horizontal scrolling and shrinkable first column
How to make JTable both AutoResize and horizontall scrollable?
JTable Scrolling to a Specified Row Index
1
stackoverflowdupquestions
How to use code libraries from github?
How to make this (github) source into a library/jar?
Indecision on which files to upload on GitHub
1
stackoverflowdupquestions
How to generate QR code with logo inside it?
how to add logo to qr codes
Google App Engine - Generate QR Code
1
stackoverflowdupquestions
Get byte array from InputStream without a known size in Java?
Convert InputStream to byte array in Java
Java- using an InputStream as a File
1
stackoverflowdupquestions
Using JSch to SFTP when one must also switch user
Follow up to: Using JSch to SFTP when one must also switch user
How to get only directories and text files using SFTP channel of JSch?
1
stackoverflowdupquestions
Is this a better version of Double Check Locking without volatile and synchronization overhead
With double-checked locking, does a put to a volatile ConcurrentHashMap have happens-before guarantee?
What is Volatile in Java and when/how should we use them?
1
stackoverflowdupquestions
java : non-static variable cannot be referenced from a static context Error
non-static variable this cannot be referenced from a static context?
Non-static method isGooglePlayServicesAvailable and getErrorDialog cannot be referenced from a static context
1
stackoverflowdupquestions
Filter array to one row per multiple of ten, based on difference?
Filter map to one row per multiple of ten,based on difference in decreasing order in java
Create ten instances of a class simultaneously using threads
1
stackoverflowdupquestions
How can interfaces replace the need for multiple inheritance when have existing classes
Multiple Inheritance in Java and interfaces
Multiple inheritance of a class?
1
stackoverflowdupquestions
Why isn't a qualified static final variable allowed in a static initialization block?
Static final field initialization from static initializer
Java: Static initialization
1
stackoverflowdupquestions
How to display system icon for a file in SWT?
SWT get System folder Image?
Display HTML text in SWT Label
1
stackoverflowdupquestions
When do I need to call this method Runtime.getRuntime().addShutdownHook()
Implementation of addShutdownHook
how to avoid Google App Engine does not support Runtime.addShutdownHook
1
stackoverflowdupquestions
Why do I get java.lang.AbstractMethodError when I try to call org.apache.activemq.ActiveMQSession.createDurableConsumer
Getting java.lang.AbstractMethodError on implemented method
java.lang.AbstractMethodError deploying an application (Spring 4 MVC+Hibernate 4/5)
1
stackoverflowdupquestions
Allow java trust store to accept all SSL certificates?
Is it possible to get Java to ignore the "trust store" and just accept whatever SSL certificate it gets?
How do I provide create a CloseableHttpPipeliningClient that doesn't validate SSL certificates?
1
stackoverflowdupquestions
App stops working when I call a second activity from nav drawer click
App stops working when I call a second activity with nav drawer from nav drawer click
How to open next drawer on click of a specific fragment of previous drawer item
1
stackoverflowdupquestions
Hibernate, iBatis, Java EE or other Java ORM tool
Question about solution - Access to database. Hibernate? iBatis? or what?
Hibernate or iBatis or something else?
1
stackoverflowdupquestions
Empty validatedBy in @Constraint
How to avoid cross dependency between layers because of @Constraint validatedBy?
How to get x next items from a list with a specific class constraint
1
stackoverflowdupquestions
Android SQLiteOpenHelper: Why onCreate() method is not called?
SQLiteOpenHelper failing to call onCreate?
SQLiteOpenHelper .update() does not persist
1
stackoverflowdupquestions
convert curl call into java urlconnection call
convert curl request into URLConnection
URLConnection time out issue
1
stackoverflowdupquestions
Spring Boot Application - what is default timeout for any rest API endpoint or a easy config to control all endpoint timeout
Spring Boot REST API - request timeout?
Not sure if this is appropriate to do -- calling a Spring endpoint from another endpoint
1
stackoverflowdupquestions
java.rmi.ConnectException: Connection refused to host: 10.0.0.57
java.rmi.ConnectException: Connection refused to host: 127.0.1.1;
How to produce ConnectException on purpose?
1
stackoverflowdupquestions
Persistence object cannot find persistence unit from persistence.xml
Why is persistence unit named null when persistence.xml exists
Can't find persistence.xml
1
stackoverflowdupquestions
How do I convert a large string into hex and then into byte?
In Java, how do I convert a hex string to a byte[]?
How to change the hex string to 4 byte in java?
1
stackoverflowdupquestions
required jars for video recording using JMF
JMF Cannot find video.properties file
video recording from web browser
1
stackoverflowdupquestions
Debug my web application using ant
How to debug ant build war files
How to use Ant?
1
stackoverflowdupquestions
Java 6 Unsupported major.minor version 51.0
Spring-boot "Unsupported major.minor version 51.0" when try to build with java 6
Unsupported major.minor version 51.0 on Junit, but not web app
1
stackoverflowdupquestions
jax-ws webservice's endpoint is always localhost
How to change port from 8080 of jax ws webservice?
I can't return array String[] with JAX-WS
1
stackoverflowdupquestions
Parsing the CN out of a certificate DN
How to extract CN from X509Certificate in Java?
X509 certificate CSR DN parsing
1
stackoverflowdupquestions
How to overwrite values loaded from properties file if new value is provided in command line
Overwrite property file values if specified in the command line arguments
How to overwrite some bytes in a file?
1
stackoverflowdupquestions
How does autowiring work in Spring?
Autowiring Error
When to use autowiring in Spring
1
stackoverflowdupquestions
Face recognition API
How Face Recognision Use in Java
Java Sample Face Recognition
1
stackoverflowdupquestions
How do I get FutureTask to return after TimeoutException?
How to handle timeout using FutureTask?
Android Future vs FutureTask
1
stackoverflowdupquestions
How to get list of available serial ports in my pc using Java?
How to get the list of all available serial ports on linux using java?
Unable to find serial ports
1
stackoverflowdupquestions
How do I prevent Spring 3.0 MVC @ModelAttribute variables from appearing in URL?
How do I prevent Spring 4.0 MVC @ModelAttribute variables from appearing in URL?
@ModelAttribute Spring MVC multiple select not setting the ArrayList
1
stackoverflowdupquestions
how to handle composite key hibernate
How to use Hibernate composite-id without class?
How to update a table with composite key using hibernate?
1
stackoverflowdupquestions
libgdx coordinate system differences between rendering and touch input
Changing the Coordinate System in LibGDX (Java)
libgdx - Check if body is touch
1
stackoverflowdupquestions
Curly braces in "new" expression? (e.g. "new MyClass() { ... }")
Code with curly braces in/after "new"?
How to Remove Curly Braces in HashMap Android
1
stackoverflowdupquestions
When NOT to call super() method when overriding?
how overriding works in the following code?
Overriding in Java
1
stackoverflowdupquestions
Java SWIFT Library
SWIFT component in .NET
Swift decode and encode string
1
stackoverflowdupquestions
NoSuchElementException is occurred during implementation of InternetExplorerDriver in Selenium WebDriver
Selenium Remote Driver - NoSuchElementException is occurred during implementation of InternetExplorerDriver
How do I setup the InternetExplorerDriver so it works
1
stackoverflowdupquestions
How to convert a time from GMT to EST
How to convert date and time to est format in android?
Android convert gmt time to readable date
1
stackoverflowdupquestions
Having multiple Regex in Java 8 Stream to read text from Line
How do I create a Stream of regex matches?
How to code Stream.findNth()?
1
stackoverflowdupquestions
Why does java tzupdater add leap seconds?
Are leap seconds catered for by Calendar?
A simple leap year logic trouble
1
stackoverflowdupquestions
No subject alternative names present exception when creating web service client
How to fix the "java.security.cert.CertificateException: No subject alternative names present" error?
Alternative for using set methods when creating a new object
1
stackoverflowdupquestions
how to create a Java Date object of midnight today and midnight tomorrow?
Inconsistent behavior with setting Java calendar object to midnight
How to get the time since midnight in seconds
1
stackoverflowdupquestions
Java/libGDX - how to check Polygon collision with Rectangle or Circle
Circle and Polygon Collision with Libgdx
libGDX circle won't restart after collision
1
stackoverflowdupquestions
Java reflection: How can I retrieve anonymous inner classes?
how to get anonymous class fields by using reflection
Anonymous classes, private methods, and reflection
1
stackoverflowdupquestions
How to run a task daily from Java?
Most efficient method to schedule java application to run daily
How to make Android app retrieve data daily from the server?
1
stackoverflowdupquestions
Rendering combo boxes in a JTable
For one column of a JTable, how do I put a unique combo box editor in each row?
Java Swing combo box selection and link to other combo boxes
1
stackoverflowdupquestions
Java Enums: Two enum types, each containing references to each other?
Access other enums in enum's constructor
Using enums in Java
1
stackoverflowdupquestions
Guide to use Restlet Swagger extension for GAE
Is there a way to make Restlet Swagger extension limit the API it shows?
android restlet get json array
1
stackoverflowdupquestions
ScheduledExecutorService that interrupts after a timeout
ExecutorService that interrupts tasks after a timeout
Run Java ScheduledExecutorService in the background
1
stackoverflowdupquestions
Identifying the caller method and arguments without reflection
How do I find the caller of a method using stacktrace or reflection?
How to get a caller class of a method
1
stackoverflowdupquestions
SHA1 hash computation not returing same result for java and c#
HMC SHA1 hash - Java producing different hash output than C#
SHA1 C# equivalent of this Java
1
stackoverflowdupquestions
String length in pixels in Java
How do I calculate the width of a string in pixels?
Does JavaFX always use pixels?
1
stackoverflowdupquestions
How to wait for a thread to finish before another thread starts in Java/Android?
How to make a Java thread wait for another thread's output?
How Thread run starts?
1
stackoverflowdupquestions
POST with jersey Java return 415 unsupported media type
POST to Jersey REST service getting error 415 Unsupported Media Type
Jersey Client resulting in 415 Unsupported media type
1
stackoverflowdupquestions
Creating a topic for Apache Kafka 0.9 Using Java
How create Kafka ZKStringSerializer in Java?
How to Delete a topic in apache kafka
1
stackoverflowdupquestions
How to pause all running threads? and then resume?
How pause and then resume a thread?
Java ExecutorService pause/resume a specific thread
1
stackoverflowdupquestions
create an transparent rectangle over blurred background in jframe
How to have a JFrame with transparent Blurred background
How to add non-Transparent components to Transparent JFrame in java 1.5?
1
stackoverflowdupquestions
ONVIF - beginning of Device discovery
Onvif ip camera service discovery
Broadcast server discovery
1
stackoverflowdupquestions
convert string date to java.sql.Date
String date to java.sql.Date
How to convert Date string to java Date?
1
stackoverflowdupquestions
SEVERE: Allocate exception for servlet <myservlet-name> java.lang.ClassNotFoundException: <myservlet> exception
Allocate exception for servlet - Web Programming in JAVA
java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory
1
stackoverflowdupquestions
Finding Max with Lambda Expression in Java
for loop using lambda expression in JAVA
Lambda expression in Java?
1
stackoverflowdupquestions
Difference between @Before, @BeforeClass, @BeforeEach and @BeforeAll
JUnit using @Before over @BeforeClass
What's the difference between using @BeforeClass and using instance or static variable in JUnit 4 Java?
1
stackoverflowdupquestions
How to print a formatted SOAPMessage?
How to print SOAPMessage
How to add CDATA section to SOAPMessage using SAAJ?
1
stackoverflowdupquestions
JTree TreeCellRenderer raising issue on showing the selection color
TreeCellRenderer: how to set background color?
JTree does not show up
1
stackoverflowdupquestions
Null Pointer Exception after checking with 'if' statement
Null Pointer Exception at 'if' statement
java null pointer exception
1
stackoverflowdupquestions
NTLM Authentication with Active Directory using Java
Spring 3 and NTLM authentication
Can't integrate NTLM and JAVA
1
stackoverflowdupquestions
java: TrayIcon right click disabled on Mac OsX
java TrayIcon using image with transparent background
How can I listen to clicks on a message of TrayIcon
1
stackoverflowdupquestions
Unable to compile class for JSP: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
The type java.util.Map$Entry cannot be resolved
Unable to compile class for JSP: x cannot be resolved to a type
1
stackoverflowdupquestions
Defective token detected error (NTLM not Kerberos) with Kerberos/Spring Security/IE/Active Directory
GSSException Defective token detected - when trying to Authenticate to Tomcat running on Windows using Kerberos
Kerberos and LDAP: Why does Java 6 truncate LDAP host names when using Kerberos?
1
stackoverflowdupquestions
how to parse a table from HTML using jsoup
JSoup how to parse table 3 rows
how to parse a file.html with jsoup in java
1
stackoverflowdupquestions
What is the difference between the JRE and JVM?
What is the difference between JVM, JDK, JRE & OpenJDK?
get current jre's file path
1
stackoverflowdupquestions
Apache StringUtils vs Java implementation of replace()
Commons Lang StringUtils.replace performance vs String.replace
how Apache Commons StringUtils.repeat() works and why it works in this way?
1
stackoverflowdupquestions
How to show image in JFrame
Adding image to JFrame
How to add text over an image in a JFrame?
1
stackoverflowdupquestions
How to make a dynamic frequency histogram from user input
How to write a method that prints out a histogram?
how to make histogram of performance numbers
1
stackoverflowdupquestions
Octree StackOverflowError
What is a StackOverflowError?
java.lang.StackOverflowError?
1
stackoverflowdupquestions
Why HotSpot will optimize the following using hoisting?
Are hoisting and reordering the same thing?
how i can optimize this java code?
1
stackoverflowdupquestions
What is the shortest way to initialize List of strings in java?
The shortest way to fill the ArrayList
Find shortest path in dynamic graph
1
stackoverflowdupquestions
In Java, when do you use const instead of final?
Why const keyword is not used in Java?
Why does C# not allow const and static on the same line?
1
stackoverflowdupquestions
Why does Collections.sort(List) work in Java 8 with CopyOnWriteArrayList but not in Java 7?
How to sort CopyOnWriteArrayList
MyBatis SelectList Output CopyOnWriteArrayList
1
stackoverflowdupquestions
Jfreechart - any option for multiple XY charts like with the multi pie plot?
JFreeChart : how do you put multiple charts into a composite chart
Does JFreeChart have support for three dimensional charts
1
stackoverflowdupquestions
Difference between try-finally and try-catch
Java Try Catch Finally blocks without Catch
What happens in a try/catch/finally with no catch?
1
stackoverflowdupquestions
JADClipse not working with Eclipse 3.6
Is there a way to get jadclipse working with Eclipse 3.4?
Autocompile in Eclipse
1
stackoverflowdupquestions
How to Tell Eclipse to Include Standard .jar Library for All Projects
Remove/Add jar to all projects in eclipse workspace
What are nested projects in eclipse/java
1
stackoverflowdupquestions
Java - Threads, Swing, and ServerSocket
Java Threads - Getting ServerSocket input to update Swing
ServerSocket do not work
1
stackoverflowdupquestions
Why is PrinterState always null?
Why PrinterState always returns null?
Location is always null
1
stackoverflowdupquestions
Getting error java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block
ArrayIndexOutOfBoundsException : too much data for RSA block
java.lang.ArrayIndexOutOfBoundsException error
1
stackoverflowdupquestions
Avoiding Null Pointer Exception in "for" statement
Avoiding != null statements
My Null pointer exception
1
stackoverflowdupquestions
int[] and Integer[] arrays - What is the difference?
What is the difference between int and Integer in this script?
Finding the difference between two int arrays
1
stackoverflowdupquestions
In Java, how do you obtain a Socket or DatagramSocket from the file descriptor of an already opened C socket?
Can I get a Java Socket from a file descriptor number?
how can i get the right string from a byte array which is passed over by DatagramSocket
1
stackoverflowdupquestions
No OpenGL context is current in the current thread
No OpenGL context found in the current thread, how do I fix this error?
Nuking server state in OpenGL
1
stackoverflowdupquestions
Java SWT added Label not visible
Update swt window after adding a label
How To Extend Java's SWT Label?
1
stackoverflowdupquestions
Behaviour of final static method
static, final, static final - correct usage and when to use them?
Static/Final java classes?
1
stackoverflowdupquestions
Redirect Runtime.getRuntime().exec() output with System.setOut();
Execute java file with Runtime.getRuntime().exec()
Java - System.setOut does not save an exception message
1
stackoverflowdupquestions
Should I specify shared static variable as volatile?
Volatile vs Static in Java
Happens-before and volatile variable
1
stackoverflowdupquestions
Getting element using attribute
How to parse xml element using attribute value
need to find the attribute name in the string
1
stackoverflowdupquestions
How to control font style, color, and size inside a JTable?
How to set the color of a Font?
Dynamically Changing JTable Font Size
1
stackoverflowdupquestions
How to improve the builder pattern?
Improve builder pattern on validation check?
Why Java Builder pattern over Java Bean pattern
1
stackoverflowdupquestions