parent
0dceecec47
commit
a7f29125f1
|
@ -14,3 +14,4 @@
|
||||||
/jaggob$2.class
|
/jaggob$2.class
|
||||||
/jaggob.class
|
/jaggob.class
|
||||||
/GUI$9.class
|
/GUI$9.class
|
||||||
|
/GUI$10.class
|
||||||
|
|
BIN
bin/GUI$1.class
BIN
bin/GUI$1.class
Binary file not shown.
BIN
bin/GUI$2.class
BIN
bin/GUI$2.class
Binary file not shown.
BIN
bin/GUI$3.class
BIN
bin/GUI$3.class
Binary file not shown.
BIN
bin/GUI$4.class
BIN
bin/GUI$4.class
Binary file not shown.
BIN
bin/GUI$5.class
BIN
bin/GUI$5.class
Binary file not shown.
BIN
bin/GUI$6.class
BIN
bin/GUI$6.class
Binary file not shown.
BIN
bin/GUI$7.class
BIN
bin/GUI$7.class
Binary file not shown.
BIN
bin/GUI$8.class
BIN
bin/GUI$8.class
Binary file not shown.
Binary file not shown.
BIN
bin/GUI.class
BIN
bin/GUI.class
Binary file not shown.
28
src/GUI.java
28
src/GUI.java
|
@ -25,6 +25,7 @@ import java.awt.Component;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
import java.awt.EventQueue;
|
import java.awt.EventQueue;
|
||||||
import java.awt.Font;
|
import java.awt.Font;
|
||||||
|
import java.awt.MenuBar;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
import java.awt.event.MouseAdapter;
|
import java.awt.event.MouseAdapter;
|
||||||
|
@ -42,6 +43,9 @@ import javax.swing.JButton;
|
||||||
import javax.swing.JFileChooser;
|
import javax.swing.JFileChooser;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
|
import javax.swing.JMenu;
|
||||||
|
import javax.swing.JMenuBar;
|
||||||
|
import javax.swing.JMenuItem;
|
||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
|
@ -67,6 +71,10 @@ public class GUI extends JFrame {
|
||||||
|
|
||||||
//Init
|
//Init
|
||||||
private JButton btn_browse;
|
private JButton btn_browse;
|
||||||
|
private JMenuBar menubar;
|
||||||
|
private JMenu file;
|
||||||
|
private JMenuItem exit;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
|
@ -170,8 +178,26 @@ public class GUI extends JFrame {
|
||||||
contentPane.add(textField);
|
contentPane.add(textField);
|
||||||
textField.setColumns(10);
|
textField.setColumns(10);
|
||||||
|
|
||||||
//browse Button hinzufügen
|
//Menübar einrichten
|
||||||
|
|
||||||
|
|
||||||
|
menubar = new JMenuBar();
|
||||||
|
file = new JMenu("File...");
|
||||||
|
exit = new JMenuItem("Exit");
|
||||||
|
exit.addActionListener(new ActionListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
System.exit(0);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
file.add(exit);
|
||||||
|
menubar.add(file);
|
||||||
|
setJMenuBar(menubar);
|
||||||
|
|
||||||
|
|
||||||
|
//browse Button hinzufügen
|
||||||
btn_browse = new JButton("...");
|
btn_browse = new JButton("...");
|
||||||
btn_browse.setBounds(1065, 14, 20, 20);
|
btn_browse.setBounds(1065, 14, 20, 20);
|
||||||
btn_browse.addActionListener(new ActionListener() {
|
btn_browse.addActionListener(new ActionListener() {
|
||||||
|
|
Loading…
Reference in New Issue