From 205f059ec5df1a24daa87f8563d2bbb99344ecf9 Mon Sep 17 00:00:00 2001 From: tspitzer Date: Tue, 17 Sep 2013 15:38:08 +0200 Subject: g --- Dozentenmodul/src/GUI/getVMwarePlayer.java | 156 +++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 Dozentenmodul/src/GUI/getVMwarePlayer.java (limited to 'Dozentenmodul/src/GUI/getVMwarePlayer.java') diff --git a/Dozentenmodul/src/GUI/getVMwarePlayer.java b/Dozentenmodul/src/GUI/getVMwarePlayer.java new file mode 100644 index 00000000..47a09de5 --- /dev/null +++ b/Dozentenmodul/src/GUI/getVMwarePlayer.java @@ -0,0 +1,156 @@ +package GUI; + +import java.awt.FlowLayout; +import javax.swing.JButton; +import javax.swing.JDialog; +import javax.swing.JPanel; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; +import javax.swing.border.EmptyBorder; +import java.awt.Color; +import javax.swing.JLabel; +import java.awt.Font; +import javax.swing.JTextPane; +import java.awt.SystemColor; +import ftp.ftp; +import java.awt.event.ActionListener; +import java.awt.event.ActionEvent; +import javax.swing.JSeparator; +import javax.swing.JMenuBar; +import javax.swing.JMenu; +import javax.swing.JMenuItem; + +@SuppressWarnings("serial") +public class getVMwarePlayer extends JDialog { + + private final JPanel contentPanel = new JPanel(); + String[] result; + ftp f=new ftp(); + /** + * Launch the application. + */ + public static void main(String[] args) { + try { + getVMwarePlayer dialog = new getVMwarePlayer(); + dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); + dialog.setVisible(true); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Create the dialog. + */ + public getVMwarePlayer() { + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | InstantiationException + | IllegalAccessException | UnsupportedLookAndFeelException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + setTitle("Dozentenmodul"); + setBounds(100, 100, 545, 517); + getContentPane().setLayout(null); + { + JPanel panel = new JPanel(); + panel.setBounds(0, 0, 529, 80); + getContentPane().add(panel); + panel.setLayout(null); + { + JLabel lblNewLabel = new JLabel("Bearbeiten der VMDK (Schritt 2 von 6)"); + lblNewLabel.setBounds(10, 11, 509, 22); + panel.add(lblNewLabel); + lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 18)); + } + + JTextPane txtpnBitteWhlenSie = new JTextPane(); + txtpnBitteWhlenSie.setEditable(false); + txtpnBitteWhlenSie.setBackground(SystemColor.menu); + txtpnBitteWhlenSie.setText("Bitte bearbeiten Sie nun die heruntergeladene VMDK"); + txtpnBitteWhlenSie.setBounds(10, 36, 509, 42); + panel.add(txtpnBitteWhlenSie); + } + contentPanel.setBounds(10, 113, 509, 252); + contentPanel.setBackground(Color.WHITE); + contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5)); + getContentPane().add(contentPanel); + contentPanel.setLayout(null); + + JTextPane txtpnUmIhreVmdk = new JTextPane(); + txtpnUmIhreVmdk.setEditable(false); + txtpnUmIhreVmdk.setText("Um Ihre VMDK zu bearbeiten bzw. die notwendigen Programme zu installieren, ben\u00F6tigen sie den VMware Player. Den VMware Player k\u00F6nnen Sie unter folgendem Link downloaden."); + txtpnUmIhreVmdk.setBounds(0, 0, 499, 154); + contentPanel.add(txtpnUmIhreVmdk); + { + JPanel buttonPane = new JPanel(); + buttonPane.setBounds(0, 423, 529, 33); + buttonPane.setBackground(SystemColor.menu); + buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT)); + getContentPane().add(buttonPane); + { + JButton okButton = new JButton("Zur\u00FCck"); + okButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + searchRohling sr=new searchRohling(); + sr.setVisible(true); + dispose(); + } + }); + okButton.setActionCommand("OK"); + buttonPane.add(okButton); + getRootPane().setDefaultButton(okButton); + } + { + JButton cancelButton = new JButton("Weiter"); + cancelButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + EingabeAllgemein ea=new EingabeAllgemein(); + ea.setVisible(true); + dispose(); + } + }); + cancelButton.setActionCommand("Cancel"); + buttonPane.add(cancelButton); + } + } + { + JSeparator separator = new JSeparator(); + separator.setBounds(0, 402, 519, 2); + getContentPane().add(separator); + } + { + JSeparator separator = new JSeparator(); + separator.setBounds(0, 91, 519, 2); + getContentPane().add(separator); + } + { + JMenuBar menuBar = new JMenuBar(); + setJMenuBar(menuBar); + { + JMenu mnSuchen = new JMenu("Suchen"); + menuBar.add(mnSuchen); + { + JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); + mnSuchen.add(mntmVlSuche); + } + } + { + JMenu mnHilfe = new JMenu("Hilfe"); + menuBar.add(mnHilfe); + { + JMenuItem mntmFaq = new JMenuItem("FAQ"); + mnHilfe.add(mntmFaq); + } + { + JMenuItem mntmHilfe = new JMenuItem("Hilfe"); + mnHilfe.add(mntmHilfe); + } + } + } + + + + } +} -- cgit v1.2.3-55-g7522