There is a vulnerability in the third-party component used by Android APP. After rectification, an error is reported: ava.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Color;

Recently, the company’s app was detected to use third-party components containing vulnerabilities and needs to be rectified. Record: some problems encountered during the rectification process and their solutions. 1. The component commons-net-3.3.jar has a vulnerability CVE-2021-37533. According to the official website announcement, just upgrade to 3.10.0 or above. build.gradle under app implementation ‘commons-net:commons-net:3.10.0’ Apache official […]

[State Estimation] The health state SOH is estimated using the average weighted least squares method (AWTLS), and compared with the weighted least squares (WLS), total least squares (TLS) and weighted total least squares (WTLS) algorithms (Matlab code accomplish)

Welcome to this blog Advantages of bloggers:Blog content should be as thoughtful and logical as possible for the convenience of readers. Motto:He who travels a hundred miles is half as good as ninety. The directory of this article is as follows: Table of Contents 1 Overview 2 Operation results 2.1 Health status SOH operation results […]

ChatGPT: How to use Java to call up the file selector and then return the location and name of the file? Swing Components and AWT Components: Differences in Java GUI Programming

ChatGPT: How to use Java to call up the file selector and then return the location and name of the file? Swing Components and AWT Components: Differences in Java GUI Programming How to use Java to call up the file selector and then return the location and name of the file ChatGPT: In Java, you […]

Java AWT Swing (graphical interface programming) (1)

Directory 1 Introduction 2. Graphical interface in Java – Awt and Swing 1. AWT programming 1 Introduction 2. AWT inheritance system 3. container container 3.1 container inheritance system 3.2. Common APIs 3.3 Container Demo 1 3.4 Container Demo II 3.5 Container Demo Three 1. Introduction: Under normal circumstances, the Java language is generally used to […]

GUI programming — AWT (continued)

GUI programming 1. Event monitoring package com.GUI.lesson02; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class TestActionEvent {<!– –> public static void main(String[] args) {<!– –> Frame frame = new Frame(); Button button = new Button(); //Because addActionListener() needs an ActionListener, we need to construct an ActionListener MyActionListener myActionListener = new MyActionListener(); […]

It turns out that PWM is so simple! The sawtooth wave is used as the carrier and the modulation wave is compared to generate the corresponding PWM output waveform

Table of Contents Fundamental How is PWM implemented? Classification program implementation Summarize Rationale The full name of PWM is Pulse-width modulation (Pulse-width modulation), which reduces the electrical A measure of the average power delivered by a signal; Therefore, according to the area equivalence law, the corresponding amplitude and frequency that need to be synthesized can […]

Waveform generator based on 51 microcontroller (PCF8591, sine wave, triangle wave, sawtooth wave, square wave)

Sine wave, triangle wave, sawtooth wave and square wave are the four most common waveforms in our daily life, so it is very important to learn how to use a single-chip microcomputer to generate these four waves. But after learning 51 single-chip microcomputer, you know that its IO pin can only output high level or […]

Swing implementation of AWT components

Swing provides corresponding implementations for all AWT components except Canvas, and Swing components are more powerful than AWT components. Components Compared to AWT components, Swing components have the following four additional functions: 1. You can set prompt information for Swing components. Use the setToolTipText() method to set helpful prompt information for the component. 2. Many […]

[Java AWT Graphical Interface Programming] Use the mouse wheel to zoom the background image drawn in the Canvas (drawing a large image + mouse drag + mouse wheel zoom + take the current mouse pointer position as the zoom center example)

Article directory 1. Set the zoom center point of the mouse wheel as the current mouse center point – key points analysis 1. Save the current mouse pointer pointing position 2. Recalculate the position of the picture according to the position and scale pointed by the mouse pointer 2. Draw a super large image + […]