舌像提取主代码
package StudyTEST;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class Tongue_Extract {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Tongue_Extract window = new Tongue_Extract();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public Tongue_Extract (){
initialize();
}
private void initialize() {
frame = new JFrame();
frame.setBounds(650,160,680,740);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
JPanel panel = new JPanel();
panel.setBounds(10, 10, 635, 138);
frame.getContentPane().add(panel);
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setIcon(new ImageIcon("C:\\Users\\201801033013\\eclipse-workspace\\EducationPractice\\src\\JT}@X6)4_2T}X}5ZG_Q@UAP.png"));
panel.add(lblNewLabel);
scrollPane = new JScrollPane();
scrollPane.setBounds(32, 204, 598, 420);
frame.getContentPane().add(scrollPane);
JPanel panel_1 = new JPanel();
panel_1.setBackground(Color.GRAY);
panel_1.setForeground(Color.GRAY);
scrollPane.setViewportView(panel_1);
JLabel lblNewLabel_1 = new JLabel("\u820C\u50CFPNG:");
lblNewLabel_1.setBounds(22, 169, 61, 25</