2016-10-17 06:30:35 +02:00
|
|
|
/*
|
|
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
|
|
* To change this template file, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
package forgemodpackbuilder;
|
|
|
|
|
2016-10-26 15:03:33 +02:00
|
|
|
import ModpackDownloader.ModpackSuche;
|
|
|
|
import DateiKopieren.DateiKopierenClass;
|
|
|
|
import DateiKopieren.FileDeleteExample;
|
|
|
|
import Zipper.frage;
|
|
|
|
import Zipper.UnZip;
|
|
|
|
import ModpackDownloader.ModpackDownloader;
|
|
|
|
import ModpackDownloader.downloader1;
|
|
|
|
import ModpackDownloader.downloader;
|
|
|
|
import Suche.Suche1;
|
|
|
|
import Suche.Suche;
|
2016-10-17 10:06:37 +02:00
|
|
|
import java.awt.event.KeyEvent;
|
2016-10-17 06:30:35 +02:00
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
2016-10-19 01:34:00 +02:00
|
|
|
import java.util.ArrayList;
|
2016-10-17 06:30:35 +02:00
|
|
|
import java.util.logging.Level;
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
import javax.swing.DefaultListModel;
|
|
|
|
import javax.swing.JOptionPane;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author simonr
|
|
|
|
*/
|
|
|
|
public class GUI extends javax.swing.JFrame {
|
|
|
|
|
2016-10-26 15:03:33 +02:00
|
|
|
public static String datei = null;
|
|
|
|
public static int zahl = 0;
|
|
|
|
public static ArrayList<String> mods0 = new ArrayList<String>();
|
|
|
|
public static ArrayList<String> mods1 = new ArrayList<String>();
|
|
|
|
public static String version = "1.10.2";
|
|
|
|
public static String datei2 = null;
|
|
|
|
public static int funktion = 0;
|
2016-10-17 06:30:35 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates new form GUI
|
|
|
|
*/
|
|
|
|
public GUI() {
|
|
|
|
initComponents();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This method is called from within the constructor to initialize the form.
|
|
|
|
* WARNING: Do NOT modify this code. The content of this method is always
|
|
|
|
* regenerated by the Form Editor.
|
|
|
|
*/
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
|
|
|
private void initComponents() {
|
|
|
|
|
|
|
|
jLabel1 = new javax.swing.JLabel();
|
|
|
|
jScrollPane1 = new javax.swing.JScrollPane();
|
|
|
|
jList1 = new javax.swing.JList<>();
|
|
|
|
jLabel2 = new javax.swing.JLabel();
|
|
|
|
jButton1 = new javax.swing.JButton();
|
|
|
|
jScrollPane3 = new javax.swing.JScrollPane();
|
|
|
|
jList2 = new javax.swing.JList<>();
|
|
|
|
jButton2 = new javax.swing.JButton();
|
|
|
|
jButton3 = new javax.swing.JButton();
|
|
|
|
jButton4 = new javax.swing.JButton();
|
|
|
|
jButton5 = new javax.swing.JButton();
|
|
|
|
jComboBox1 = new javax.swing.JComboBox<>();
|
|
|
|
jButton6 = new javax.swing.JButton();
|
|
|
|
jButton8 = new javax.swing.JButton();
|
|
|
|
jTextField1 = new javax.swing.JTextField();
|
2016-10-19 01:34:00 +02:00
|
|
|
jProgressBar1 = new javax.swing.JProgressBar();
|
2016-10-17 06:30:35 +02:00
|
|
|
|
|
|
|
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
|
|
|
setTitle("ForgeModpackBuilder");
|
|
|
|
|
|
|
|
jLabel1.setText("Version");
|
|
|
|
|
2016-10-17 10:06:37 +02:00
|
|
|
jList1.addKeyListener(new java.awt.event.KeyAdapter() {
|
|
|
|
public void keyPressed(java.awt.event.KeyEvent evt) {
|
|
|
|
jList1KeyPressed(evt);
|
|
|
|
}
|
|
|
|
});
|
2016-10-17 06:30:35 +02:00
|
|
|
jScrollPane1.setViewportView(jList1);
|
|
|
|
jList1.getAccessibleContext().setAccessibleDescription("");
|
|
|
|
|
|
|
|
jLabel2.setText("Mods:");
|
|
|
|
|
|
|
|
jButton1.setText("Hinzufügen");
|
|
|
|
jButton1.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jButton1ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jScrollPane3.setViewportView(jList2);
|
|
|
|
|
|
|
|
jButton2.setText("Laden");
|
|
|
|
jButton2.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jButton2ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jButton3.setText("Minecraft starten");
|
|
|
|
jButton3.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jButton3ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jButton4.setText("Forge installieren");
|
|
|
|
jButton4.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jButton4ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jButton5.setText("Modpack erstellen");
|
|
|
|
jButton5.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jButton5ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-10-19 01:34:00 +02:00
|
|
|
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Modpacks", "1.10.2", "1.9.4", "1.8.9", "1.7.10" }));
|
2016-10-17 06:30:35 +02:00
|
|
|
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jComboBox1ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jButton6.setText("Modpack Laden und Installieren");
|
|
|
|
jButton6.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jButton6ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jButton8.setText("Entfernen");
|
|
|
|
jButton8.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jButton8ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jTextField1.setToolTipText("");
|
|
|
|
jTextField1.addActionListener(new java.awt.event.ActionListener() {
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
jTextField1ActionPerformed(evt);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
|
|
|
getContentPane().setLayout(layout);
|
|
|
|
layout.setHorizontalGroup(
|
|
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
|
.addContainerGap()
|
|
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
2016-10-19 01:34:00 +02:00
|
|
|
.addComponent(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
2016-10-17 06:30:35 +02:00
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
|
.addComponent(jLabel1)
|
|
|
|
.addGap(4, 4, 4)
|
|
|
|
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
|
.addGap(58, 58, 58)
|
|
|
|
.addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
2016-10-26 15:03:33 +02:00
|
|
|
.addGap(158, 158, 158)
|
|
|
|
.addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE))
|
2016-10-17 06:30:35 +02:00
|
|
|
.addGroup(layout.createSequentialGroup()
|
2016-10-19 01:34:00 +02:00
|
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
|
|
|
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
|
2016-10-17 06:30:35 +02:00
|
|
|
.addComponent(jLabel2)
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
.addComponent(jButton2)
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
.addComponent(jTextField1)
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
.addComponent(jButton8)
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
.addComponent(jButton1))
|
2016-10-19 01:34:00 +02:00
|
|
|
.addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 537, Short.MAX_VALUE))
|
2016-10-17 06:30:35 +02:00
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
2016-10-26 15:03:33 +02:00
|
|
|
.addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 569, Short.MAX_VALUE)
|
2016-10-17 06:30:35 +02:00
|
|
|
.addGroup(layout.createSequentialGroup()
|
2016-10-26 15:03:33 +02:00
|
|
|
.addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
2016-10-17 06:30:35 +02:00
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
2016-10-26 15:03:33 +02:00
|
|
|
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)))))
|
2016-10-17 06:30:35 +02:00
|
|
|
.addContainerGap())
|
|
|
|
);
|
|
|
|
layout.setVerticalGroup(
|
|
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
|
.addContainerGap()
|
|
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
|
|
.addComponent(jLabel1)
|
|
|
|
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
2016-10-26 15:03:33 +02:00
|
|
|
.addComponent(jButton6)
|
|
|
|
.addComponent(jButton5))
|
2016-10-17 06:30:35 +02:00
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
|
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
|
|
|
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
|
|
.addComponent(jButton1)
|
|
|
|
.addComponent(jButton2)
|
|
|
|
.addComponent(jButton8)
|
|
|
|
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
2016-10-26 15:03:33 +02:00
|
|
|
.addComponent(jButton4)
|
|
|
|
.addComponent(jButton3)))
|
2016-10-17 06:30:35 +02:00
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
|
|
|
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 478, Short.MAX_VALUE)
|
|
|
|
.addComponent(jScrollPane3))
|
2016-10-19 01:34:00 +02:00
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
.addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
2016-10-17 06:30:35 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
pack();
|
|
|
|
}// </editor-fold>//GEN-END:initComponents
|
|
|
|
|
|
|
|
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
|
|
|
|
// TODO add your handling code here:
|
|
|
|
System.out.println("Ausgewählt = " + jList1.getSelectedValue());
|
|
|
|
datei = jList1.getSelectedValue();
|
|
|
|
try {
|
|
|
|
DateiKopierenClass.main(null);
|
|
|
|
} catch (IOException ex) {
|
|
|
|
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
|
|
|
|
}
|
|
|
|
jButton2ActionPerformed(evt);
|
|
|
|
|
|
|
|
}//GEN-LAST:event_jButton1ActionPerformed
|
|
|
|
|
|
|
|
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
|
|
|
|
// TODO add your handling code here:
|
2016-10-19 01:34:00 +02:00
|
|
|
String s = (String) jComboBox1.getSelectedItem();
|
|
|
|
System.out.println(s);
|
|
|
|
version = s;
|
|
|
|
try {
|
|
|
|
if (!version.equals("Modpacks")) {
|
|
|
|
File dir = new File("./modpack/" + version);
|
|
|
|
dir.mkdir();
|
|
|
|
dir = new File("./modpack/" + version + "/mods");
|
|
|
|
dir.mkdir();
|
|
|
|
}
|
|
|
|
File dir = new File("./modpack/modpack");
|
|
|
|
dir.mkdir();
|
|
|
|
dir = new File("./modpack/modpack/mods");
|
|
|
|
dir.mkdir();
|
|
|
|
mods0.clear();
|
|
|
|
mods1.clear();
|
|
|
|
if (version.equals("Modpacks")) {
|
|
|
|
ModpackSuche.main(null);
|
|
|
|
} else {
|
|
|
|
Suche.main(null);
|
|
|
|
}
|
|
|
|
Suche1.main(null);
|
|
|
|
System.out.println("Tabelle 1 Mods = " + mods0.size());
|
|
|
|
DefaultListModel dim = new DefaultListModel();
|
|
|
|
DefaultListModel dim1 = new DefaultListModel();
|
|
|
|
for (int i = 0; i < mods0.size(); i++) {
|
|
|
|
dim.addElement(mods0.get(i));
|
|
|
|
}
|
|
|
|
System.out.println("Tabelle 2 Mods = " + mods1.size());
|
|
|
|
for (int i = 0; i < mods1.size(); i++) {
|
|
|
|
dim1.addElement(mods1.get(i));
|
|
|
|
}
|
|
|
|
jList1.setModel(dim);
|
|
|
|
jList2.setModel(dim1);
|
|
|
|
} catch (java.lang.NullPointerException ex) {
|
|
|
|
System.out.println("VerbindungsFehler 404!!!");
|
|
|
|
} catch (IOException ex) {
|
|
|
|
System.out.println("Fehler!!!");
|
2016-10-17 06:30:35 +02:00
|
|
|
}
|
|
|
|
}//GEN-LAST:event_jButton2ActionPerformed
|
|
|
|
|
|
|
|
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
|
2016-10-26 15:03:33 +02:00
|
|
|
|
2016-10-17 06:30:35 +02:00
|
|
|
try {
|
2016-10-26 15:03:33 +02:00
|
|
|
downloader.main(null);
|
|
|
|
funktion = 1;
|
|
|
|
ProcExec.main(null);
|
|
|
|
} catch (Throwable ex) {
|
2016-10-17 06:30:35 +02:00
|
|
|
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
|
|
|
|
}
|
|
|
|
}//GEN-LAST:event_jButton3ActionPerformed
|
|
|
|
|
|
|
|
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
|
2016-10-26 15:03:33 +02:00
|
|
|
|
2016-10-17 06:30:35 +02:00
|
|
|
try {
|
2016-10-26 15:03:33 +02:00
|
|
|
// TODO add your handling code here:
|
|
|
|
File dir = new File(System.getProperty("user.home") + "/.minecraft");
|
|
|
|
dir.mkdir();
|
|
|
|
|
|
|
|
downloader1.main(null);
|
|
|
|
funktion = 2;
|
|
|
|
ProcExec.main(null);
|
|
|
|
} catch (Throwable ex) {
|
2016-10-17 06:30:35 +02:00
|
|
|
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
|
|
|
|
}
|
2016-10-26 15:03:33 +02:00
|
|
|
|
2016-10-17 06:30:35 +02:00
|
|
|
}//GEN-LAST:event_jButton4ActionPerformed
|
|
|
|
|
|
|
|
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
|
|
|
|
try {
|
|
|
|
frage.main(null);
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
|
|
|
|
}
|
|
|
|
}//GEN-LAST:event_jButton5ActionPerformed
|
|
|
|
|
|
|
|
private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
|
|
|
|
// TODO add your handling code here:
|
|
|
|
jButton2ActionPerformed(evt);
|
|
|
|
|
|
|
|
}//GEN-LAST:event_jComboBox1ActionPerformed
|
|
|
|
|
|
|
|
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
|
|
|
|
// TODO add your handling code here:
|
|
|
|
try {
|
2016-10-19 01:34:00 +02:00
|
|
|
if (!version.equals("Modpacks")) {
|
|
|
|
JOptionPane.showMessageDialog(null, "Bitte geben sie den Pfad zu dem Modpack ein!");
|
|
|
|
OeffnenDialogClass.main(null);
|
|
|
|
OeffnenDialogClass a = new OeffnenDialogClass();
|
|
|
|
System.out.println("GUI = " + datei);
|
|
|
|
UnZip.modpack = datei;
|
|
|
|
JOptionPane.showMessageDialog(null, "Bitte geben sie einen Installationsort für das Modpack!");
|
|
|
|
OeffnenDialogClass.main(null);
|
|
|
|
System.out.println("GUI = " + datei);
|
|
|
|
UnZip.modpack1 = datei;
|
|
|
|
UnZip.main();
|
|
|
|
} else {
|
|
|
|
JOptionPane.showMessageDialog(null, "Bitte geben sie einen Installationsort für das Modpack!");
|
|
|
|
OeffnenDialogClass.main(null);
|
|
|
|
System.out.println("GUI = " + datei);
|
|
|
|
File dir = new File(datei + "/mods");
|
|
|
|
dir.mkdir();
|
2016-10-26 15:03:33 +02:00
|
|
|
System.out.println("Ausgewählt = " + jList1.getSelectedValue());
|
|
|
|
ModpackDownloader.zeile = jList1.getSelectedValue();
|
2016-10-19 01:34:00 +02:00
|
|
|
ModpackDownloader.main(null);
|
|
|
|
}
|
2016-10-26 15:03:33 +02:00
|
|
|
jButton3ActionPerformed(evt);
|
2016-10-17 06:30:35 +02:00
|
|
|
jButton4ActionPerformed(evt);
|
|
|
|
} catch (java.lang.NullPointerException ex) {
|
2016-10-19 01:34:00 +02:00
|
|
|
System.out.println("Keine Eingabe!!!");
|
2016-10-26 15:03:33 +02:00
|
|
|
} catch (IOException ex) {
|
2016-10-19 01:34:00 +02:00
|
|
|
System.out.println("Fehler!!!");
|
2016-10-17 06:30:35 +02:00
|
|
|
}
|
|
|
|
}//GEN-LAST:event_jButton6ActionPerformed
|
|
|
|
|
|
|
|
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
|
|
|
|
// TODO add your handling code here:
|
|
|
|
System.out.println(jList2.getSelectedValue());
|
|
|
|
datei = jList2.getSelectedValue();
|
|
|
|
try {
|
|
|
|
FileDeleteExample.main(null);
|
|
|
|
} catch (java.lang.NullPointerException ex) {
|
|
|
|
System.out.println("Datei nicht Vorhanden!!!");
|
|
|
|
}
|
|
|
|
jButton2ActionPerformed(evt);
|
|
|
|
|
|
|
|
}//GEN-LAST:event_jButton8ActionPerformed
|
|
|
|
|
|
|
|
private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
|
|
|
|
// TODO add your handling code here:
|
|
|
|
Suche.name = jTextField1.getText();
|
|
|
|
System.out.println(Suche1.name);
|
|
|
|
Suche.main(null);
|
|
|
|
jButton2ActionPerformed(evt);
|
|
|
|
|
|
|
|
}//GEN-LAST:event_jTextField1ActionPerformed
|
|
|
|
|
2016-10-17 10:06:37 +02:00
|
|
|
private void jList1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jList1KeyPressed
|
|
|
|
// TODO add your handling code here:
|
|
|
|
if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
|
|
|
|
System.out.println("ENTER pressed");
|
|
|
|
jButton1ActionPerformed(null);
|
|
|
|
}
|
|
|
|
}//GEN-LAST:event_jList1KeyPressed
|
|
|
|
|
2016-10-26 15:03:33 +02:00
|
|
|
public void progressnext() {
|
2016-10-17 06:30:35 +02:00
|
|
|
|
2016-10-26 15:03:33 +02:00
|
|
|
jProgressBar1.setMaximum(zahl);
|
|
|
|
jProgressBar1.setValue(jProgressBar1.getValue() + 1);
|
|
|
|
jProgressBar1.setStringPainted(true);
|
|
|
|
jProgressBar1.setString(datei);
|
2016-10-17 06:30:35 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|
|
|
private javax.swing.JButton jButton1;
|
|
|
|
private javax.swing.JButton jButton2;
|
|
|
|
private javax.swing.JButton jButton3;
|
|
|
|
private javax.swing.JButton jButton4;
|
|
|
|
private javax.swing.JButton jButton5;
|
|
|
|
private javax.swing.JButton jButton6;
|
|
|
|
private javax.swing.JButton jButton8;
|
|
|
|
private javax.swing.JComboBox<String> jComboBox1;
|
|
|
|
private javax.swing.JLabel jLabel1;
|
|
|
|
private javax.swing.JLabel jLabel2;
|
|
|
|
private javax.swing.JList<String> jList1;
|
|
|
|
private javax.swing.JList<String> jList2;
|
2016-10-19 01:34:00 +02:00
|
|
|
private javax.swing.JProgressBar jProgressBar1;
|
2016-10-17 06:30:35 +02:00
|
|
|
private javax.swing.JScrollPane jScrollPane1;
|
|
|
|
private javax.swing.JScrollPane jScrollPane3;
|
|
|
|
private javax.swing.JTextField jTextField1;
|
|
|
|
// End of variables declaration//GEN-END:variables
|
|
|
|
}
|