用java做一个图片分类软件

用java做一个图片分类软件

目前仅仅打包成了可执行jar包。执行图如下:

用java做一个图片分类软件_第1张图片

//初始数据
 private static final long serialVersionUID = 1L;
 private JPanel contentPane;
 private JTextField tf_yuan;
 private JTextField tf_xiaci;
 private JTextField tf_feixiaci;
 public String path1;
 public String path2;
 public  String path3;
 public static int i = 0;
 public static int i_ = 1;
 public static int q = 0;
 File[] str;
 ArrayList strArray = new ArrayList ();
 Image image = null;
 private JTextField textField;

创建面板

  setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  setResizable(false);
  setBounds(400, 100, 1200, 800);
  contentPane = new JPanel();
  contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
  setContentPane(contentPane);
  contentPane.setLayout(null);
  setTitle("图片分类");

你可能感兴趣的:(java,java,IO流)