diff options
Diffstat (limited to 'dozentenmodul/src/main/java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java b/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java index 164595af..a51912c4 100644 --- a/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java @@ -1,7 +1,6 @@ package gui.image; import gui.intro.About_GUI; -import gui.intro.Login_GUI; import gui.intro.MainMenue_GUI; import java.awt.Color; @@ -138,14 +137,6 @@ public class PermissionCreateImage_GUI extends JFrame { setLocationRelativeTo(formerGUI); - // - //System.out.println("formergui X oben:"+formerGUI.getLocation().getX()); - //System.out.println("formergui Y oben:"+formerGUI.getLocation().getY()); - - //System.out.println("this oben: "+this.getLocation().getX()); - //System.out.println("this oben: "+this.getLocation().getY()); - - //System.out.println("------------------------------------------"); getContentPane().setLayout(null); { @@ -156,7 +147,7 @@ public class PermissionCreateImage_GUI extends JFrame { panel.setLayout(null); { JLabel lblNewLabel = new JLabel( - "Image Berechtigungen (Nur zur Veranschaulichung)"); + "Image Berechtigungen"); lblNewLabel.setBounds(10, 11, 509, 22); panel.add(lblNewLabel); lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18)); @@ -618,8 +609,8 @@ public class PermissionCreateImage_GUI extends JFrame { return; boolean checked = e.getStateChange() == ItemEvent.SELECTED; for (int x = 0, y = table.getRowCount(); x < y; x++) { - table.setValueAt(new Boolean(checked), x, 1); - table.setValueAt(new Boolean(checked), x, 2); + table.setValueAt(new Boolean(checked), x, 1); //set read + table.setValueAt(new Boolean(checked), x, 2); // set write } } } @@ -632,7 +623,8 @@ public class PermissionCreateImage_GUI extends JFrame { return; boolean checked = e.getStateChange() == ItemEvent.SELECTED; for (int x = 0, y = table.getRowCount(); x < y; x++) { - table.setValueAt(new Boolean(checked), x, 3); + table.setValueAt(new Boolean(checked), x, 1); //set read + table.setValueAt(new Boolean(checked), x, 3); //set link } } } @@ -645,7 +637,10 @@ public class PermissionCreateImage_GUI extends JFrame { return; boolean checked = e.getStateChange() == ItemEvent.SELECTED; for (int x = 0, y = table.getRowCount(); x < y; x++) { - table.setValueAt(new Boolean(checked), x, 4); + table.setValueAt(new Boolean(checked), x, 1); //set read + table.setValueAt(new Boolean(checked), x, 2); // set write + table.setValueAt(new Boolean(checked), x, 3); // set link + table.setValueAt(new Boolean(checked), x, 4); //set admin } } } |
