diff options
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java | 57 |
1 files changed, 19 insertions, 38 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java b/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java index f0a1231e..f2e29690 100644 --- a/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java +++ b/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java @@ -87,7 +87,6 @@ public class PermissionEditLecture_GUI extends JFrame { }; - private JTextField textField; public PermissionEditLecture_GUI(Component formerGUI) { addWindowListener(new WindowAdapter() { @@ -141,51 +140,51 @@ public class PermissionEditLecture_GUI extends JFrame { panel.setLayout(null); panel.setBorder(new TitledBorder(null, "Beschreibung", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel.setBackground(SystemColor.menu); - panel.setBounds(10, 67, 557, 148); + panel.setBounds(10, 35, 557, 148); contentPanel.add(panel); JLabel label = new JLabel("Read"); - label.setBounds(20, 18, 90, 20); + label.setBounds(28, 18, 90, 20); panel.add(label); JLabel label_3 = new JLabel("Image darf gelesen und gestartet werden und ist in Suchfenster sichtbar."); - label_3.setBounds(120, 18, 380, 20); + label_3.setBounds(128, 18, 380, 20); panel.add(label_3); JLabel label_4 = new JLabel("Write"); - label_4.setBounds(20, 38, 90, 20); + label_4.setBounds(28, 38, 90, 20); panel.add(label_4); JLabel label_5 = new JLabel("<HTML>Image darf angepasst und überschrieben, jedoch nicht gelöscht werden. Berechtigungen für andere Benutzer festlegen</HTML>"); - label_5.setBounds(120, 38, 380, 45); + label_5.setBounds(128, 38, 380, 45); panel.add(label_5); JLabel label_6 = new JLabel("Admin"); - label_6.setBounds(20, 78, 90, 20); + label_6.setBounds(28, 78, 90, 20); panel.add(label_6); JLabel label_7 = new JLabel("<HTML>Volle Rechte: read, write, löschen und Berechtigungen für andere Benutzer festlegen.</HTML>"); - label_7.setBounds(120, 78, 380, 40); + label_7.setBounds(128, 78, 380, 40); panel.add(label_7); JLabel label_8 = new JLabel("Für alle sichtbar"); - label_8.setBounds(20, 119, 90, 20); + label_8.setBounds(28, 119, 90, 20); panel.add(label_8); JCheckBox checkBox = new JCheckBox(""); - checkBox.setBounds(115, 118, 21, 23); + checkBox.setBounds(123, 118, 21, 23); panel.add(checkBox); JPanel panel_1 = new JPanel(); panel_1.setBackground(SystemColor.menu); panel_1.setBorder(new TitledBorder(null, "Suite-Berechtigungen", TitledBorder.LEADING, TitledBorder.TOP, null, null)); - panel_1.setBounds(10, 226, 311, 294); + panel_1.setBounds(10, 194, 311, 326); contentPanel.add(panel_1); panel_1.setLayout(null); JScrollPane scrollPane = new JScrollPane(); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); - scrollPane.setBounds(10, 28, 291, 223); + scrollPane.setBounds(10, 28, 291, 251); panel_1.add(scrollPane); table = new JTable(); @@ -221,12 +220,12 @@ public class PermissionEditLecture_GUI extends JFrame { JButton button = new JButton("Hinzufügen"); button.setEnabled(false); - button.setBounds(10, 260, 89, 23); + button.setBounds(10, 290, 89, 23); panel_1.add(button); JButton button_1 = new JButton("Löschen"); button_1.setEnabled(false); - button_1.setBounds(109, 260, 89, 23); + button_1.setBounds(109, 290, 89, 23); panel_1.add(button_1); JLabel lblHauptmen = new JLabel("Hauptmenü"); @@ -256,39 +255,21 @@ public class PermissionEditLecture_GUI extends JFrame { label_2.setBounds(181, 11, 13, 14); contentPanel.add(label_2); - JLabel lblNewLabel_1 = new JLabel("Berechtigungen"); - lblNewLabel_1.setBounds(194, 11, 99, 14); + JLabel lblNewLabel_1 = new JLabel("Bearbeiten"); + lblNewLabel_1.setBounds(194, 11, 155, 14); contentPanel.add(lblNewLabel_1); - JLabel lblName = new JLabel("Name:"); - lblName.setBounds(10, 36, 46, 20); - contentPanel.add(lblName); - - textField = new JTextField(); - textField.setBounds(69, 36, 171, 20); - contentPanel.add(textField); - textField.setColumns(10); - - JLabel lblHochschule = new JLabel("Hochschule:"); - lblHochschule.setBounds(275, 36, 80, 20); - contentPanel.add(lblHochschule); - - JComboBox comboBox = new JComboBox(); - comboBox.setModel(new DefaultComboBoxModel(new String[] {"Hochschule Offenburg", "Hochschule Reutlingen", "Universität Freiburg"})); - comboBox.setBounds(365, 36, 202, 20); - contentPanel.add(comboBox); - JPanel panel_2 = new JPanel(); panel_2.setLayout(null); panel_2.setBorder(new TitledBorder(null, "Sichtbarkeit im VMChooser", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_2.setBackground(SystemColor.menu); - panel_2.setBounds(331, 226, 236, 294); + panel_2.setBounds(331, 194, 236, 326); contentPanel.add(panel_2); final JScrollPane scrollPane_1 = new JScrollPane(); scrollPane_1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane_1.setEnabled(false); - scrollPane_1.setBounds(23, 88, 203, 161); + scrollPane_1.setBounds(16, 88, 210, 191); panel_2.add(scrollPane_1); JRadioButton rdbtnAlle = new JRadioButton("Sichtbar für alle"); @@ -304,12 +285,12 @@ public class PermissionEditLecture_GUI extends JFrame { final JButton btnAddVmUser = new JButton("Hinzufügen"); btnAddVmUser.setEnabled(false); - btnAddVmUser.setBounds(23, 260, 89, 23); + btnAddVmUser.setBounds(23, 290, 89, 23); panel_2.add(btnAddVmUser); final JButton btnDelVmUser = new JButton("Löschen"); btnDelVmUser.setEnabled(false); - btnDelVmUser.setBounds(122, 260, 89, 23); + btnDelVmUser.setBounds(122, 290, 89, 23); panel_2.add(btnDelVmUser); { JPanel buttonPane = new JPanel(); |
