Recent Posts
-
Application of Java this
package java04; public class DemoPersom2 { public static void main(String[] args) { Person2 person = …… -
How to convert Java result sets to JSON?
I used the MySQL query of JDBC connector to get a result set So my job is to convert the result set to JSON format So …… -
Java – algorithm of 2D ray tracker
I want to write a programmed raytracer in Java for presentation purposes and give a general ray tracing presentation (…… -
Java – how to insert objects in an ArrayList at a specific location
Suppose I have an ArrayList of an object of size n Now I want to insert another object at a specific location, assumin…… -
Java – use jinternalframe and some buttons
Can we use jinternalfame with buttons in the main frame? Of course, the framework contains jdesktopane How about this …… -
Java keylistener and keybinding
I want to write a calculator and have a problem I have created an action listener for all buttons, and now I want to b…… -
Java – face recognition API
Using Java and Android, I tried to find a way to recognize faces with a given picture of the camera Any ideas? Does an…… -
Java – sort rows by column in JTable
When you click a column heading on JTable, it sorts the rows alphabetically This applies to all my columns except one …… -
Java – hibernate sequence does not exist
I tried to upgrade hibernate from 4 to 5.0 in my project using spring version 4.2 After upgrading, when I call the upd…… -
Multithreading – JavaFX uses threads and GUI
There was a problem using JavaFX and threads Basically, I have two choices: use tasks or platform runLater. As far as …… -
Java – does the return value break the loop?
I'm writing some code that basically follows the following format: public static boolean isIncluded(E element) { N…… -
Java – how do I call the wait () and notify () methods on non threaded objects?
How do I call the wait () and notify () methods on an object that is not a thread? That really doesn't make sense, doe…… -
Copy text to clipboard using java
I want to copy text from JTable cells to the clipboard so that it can be pasted into other programs, such as Microsoft…… -
Java – how to read PDF stream in angularjs
I get the following PDF stream from the server: How do I read this stream in angularjs? I try to open it as a PDF file…… -
Java – is there a way to run methods / classes only when Tomcat / wildfly / GlassFish starts?
I need to delete the temporary files during Tomcat startup and transfer them to the folder containing the temporary fi…… -
Java – play multiple sound clips using clip objects
I'm developing a program that contains a large number of JButton objects. I hope each object has its own Wav file In a…… -
Implementation of Java JDBC interface
In JDBC, in order to connect and execute statements in dB, we mainly use connection, statement and resultset as interf…… -
Java – error: unable to find or load the main class in the IntelliJ ide
I'm a beginner in Java. I'm trying to run my code using IntelliJ. I just installed JDJ 1.7 as my ide The following cod…… -
Erlang processes and Java threads
I'm reading "elixir in action" book by SA š a Juri ć, And in the first chapter: Isn't that true for Java threads? I me…… -
How to add shortcut keys to JButton in Java?
I have a JButton and I want to assign a shortcut to it Just like I press delete it on the keyboard, just click JButton…… -
Java – how do I get the start and end ranges from the timestamp list?
I have such a timestamp string: 2016-01-14T22:43:55Z 2016-01-15T00:04:50Z 2016-01-15T00:44:59+08:30 2016-01-15T01:25:3…… -
Java – minimize the jinternal framework without clicking a button
Is there any way to minimize / maximize jinternalframe without clicking the minimize / maximize button in the upper ri…… -
Java – Android gets the date 7 days ago (one week)
How to get the date in android in this format within the previous week: SimpleDateFormat dateFormat = new SimpleDateFo…… -
Java – remove duplicate values from ArrayList
I have a string ArrayList in which I add some duplicate values I just want to delete duplicate values, so how to delet…… -
Java – Android flood filling algorithm
Who knows an iterative and effective flood filling algorithm? Or is there a way to implement recursive filling algorit…… -
Java – swingworker is in the done method of another swingworker
First, I need to inform you that I'm trying to learn how to write code in Java It's a little difficult, but I believe …… -
Java – move jlabel to another jlabel GUI
I'm trying to move jlabel to another jlabel, and now only one timer works It should run like a train through the track…… -
What is the purpose of using java layout manager?
It seems that whenever I try to create a program, I always use setlayout (null); Commands in Java because I like to ab…… -
Java – Hibernate: myinterceptor #onflushdirty will never be called
Question: why never call myinterceptor #onflushdirty? I extend abstractentitymanagerfactorybean in XML configuration &…… -
Java – unable to get okhttp’s response body. Tostring() to return a string
I'm trying to get some JSON data using okhttp, and I can't figure out why when I try to record response body(). The re…… -
Java – abnormal behavior of the zoom in and zoom out function of JfreeChart?
I observed that the functions of "zoom in" and "zoom out" were completely different from those expected For example, w…… -
Java – attach a single action listener to all buttons
I have a program with many buttons, all of which will perform the same function I wonder if there is a way to attach a……