Recent Posts
-
Use cases of drop-down menu, pop-up menu and jtabbedpane components in Java Swing
Menu is the most commonly used component in GUI. It is not a subclass of component class and cannot be placed in ordin…… -
Pinball game code based on Java Swing
This paper describes the pinball game code based on swing in Java. Share with you for your reference. The main functio…… -
Introduction to template pattern of Java design pattern
Template pattern definition: defines the skeleton of an algorithm in an operation and delays the execution of some ste…… -
Recommend several books to learn Java
■ Java in a nutshell: a desktop quick reference, 2nd Edition, author: David Flanagan press: O'Reilly & Assoc, publ…… -
Java string union method
This paper describes the method of Java string Union. Share with you for your reference. The specific implementation c…… -
Shiro configuration method based on Spring Framework
1、 On the web Add Shiro filter to XML 2、 In spring's ApplicationContext Add Shiro configuration to XML 1. Add shirof…… -
Hunting and shooting game code based on Java Swing
This paper describes the code of hunting and shooting game based on swing in Java. Share with you for your reference. …… -
Introduction to mediator pattern of Java design pattern
Mediator definition: a mediation object is used to encapsulate a series of object interaction behaviors. Why use media…… -
Introduction to facade pattern of Java design pattern
Definition of facade: provide a consistent interface for a set of interfaces in the subsystem. A typical application o…… -
Simple usage of BigDecimal class in Java
This example describes the simple usage of BigDecimal class in Java. It is a very practical skill in Java programming.…… -
Research and sharing on Java and related character set coding
This paper will describe and discuss the above issues. We will take the word "Chinese" as an example. Looking up relev…… -
Java file read and write operation details
Directly on the code, with detailed notes and diagrams, I believe you understand! -
Shell script realizes automatic installation of JDK in Linux system
A: The machine on which this script runs, Linux B: the machine on which the JDK is to be installed, Linux First, on ma…… -
Composition of basic Java tutorials
We have tried to define classes. To define a class is to create a new type. With classes, we then construct objects of…… -
Detailed explanation of transaction management examples in spring
This article describes the transaction management in spring as an example. Share with you for your reference. The spec…… -
Java – fastest way to check string size
I have the following code in the loop statement if (sb.toString().getBytes("UTF-8").length >= 5242880) { // Do …… -
Java – how to automatically split large strings in IntelliJ ideas?
I'm testing with a long string So I need to split such a large string: privat static final String TOO_LONG_JSON = "{fi…… -
Java – use characters instead of strings for single character values in StringBuffer append
I am passing the PMD rule appendcharacterwithchar It says avoid in StringBuffer Append concatenates characters into st…… -
Multithreading – use TDD to drive thread safe code
What is a good way to use TDD to launch thread safe code? For example, suppose I have a factory method that uses defer…… -
java. util. stream. What happened to streamable?
Early jdk8-ea JavaDocs like this indicated that there was a Java util. stream. Streamable interface, which seems to ha…… -
JAVA_ Home cannot find sudo
I have a bash script on a Linux box that runs jar files When I log in as a regular user, I do not have permission to r…… -
Java UTF-8 to ASCII conversion and supplement
We accept the input of various national characters in UTF-8 string, and we need to convert them into output ascii stri…… -
Java – convert data URL to bufferedimage
I have a data URL for an image file and must pass it to another function Along the path from the data URL to the buffe…… -
Java – spring boot and Apache CXF for restful web services?
I'm part of the coding competition. My task is to create a restful online market where users can publish purchase and …… -
Java – change the text color of Google place picker AppBar
I really want to know if I can change the text color of AppBar text in Android's placepicker API It should inherit the…… -
Java – how to check whether the element in the int array is empty?
Example: I want to see if array [5] saves a value or is empty Solution Elements in the original array cannot be empty …… -
Looking for 2D java games?
I am writing a very basic java game based on the idea of theme hospital I'm new to Java. I'm studying in college I hav…… -
Java – using cookie persistence improvement
My guy, I'm using modification, and I want to know how to handle session cookies transparently Client client = new Apa…… -
How to set a custom DH group in Java sslengine to prevent logjam attacks?
The new logjam TLS attack is based on the common DH group This link recommends generating a new, custom 2048 bit DH gr…… -
Java – why doesn’t drag and drop work in selenium webdriver?
I tried to drag an element into another element using selenium webdriver, but it didn't work I tried all the solutions…… -
Java swing on high DPI screen
I have a Java Swing program that uses the system look and feel: UIManager.setLookAndFeel (UIManager.getSystemLookAndFe…… -
How to quickly capture screenshots in Java?
I am implementing a simple eye tracker, which requires fast screen synchronization to capture video from webcam The th……