From 0da0f2cc5b9db11b3a738027f2e084c3a63921f0 Mon Sep 17 00:00:00 2001 From: ahren Date: Mon, 18 Dec 2023 12:47:24 +0100 Subject: [PATCH] =?UTF-8?q?zeichenfl=C3=A4che=20wieder=20drin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 + src/ChatProgramm/view/GrafikFrame.form | 22 +++--- src/ChatProgramm/view/GrafikFrame.java | 94 ++++++++++++++------------ 3 files changed, 64 insertions(+), 55 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..187bdfe --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/nbproject/private/ +/build/ +/dist/ diff --git a/src/ChatProgramm/view/GrafikFrame.form b/src/ChatProgramm/view/GrafikFrame.form index 87c960a..6672b4f 100644 --- a/src/ChatProgramm/view/GrafikFrame.form +++ b/src/ChatProgramm/view/GrafikFrame.form @@ -28,17 +28,6 @@ - - - - - - - - - - - @@ -85,5 +74,16 @@ + + + + + + + + + + + diff --git a/src/ChatProgramm/view/GrafikFrame.java b/src/ChatProgramm/view/GrafikFrame.java index 4a8e370..7a2dec7 100644 --- a/src/ChatProgramm/view/GrafikFrame.java +++ b/src/ChatProgramm/view/GrafikFrame.java @@ -11,6 +11,14 @@ package ChatProgramm.view; public class GrafikFrame extends javax.swing.JFrame { + /** + * @return the gvZeichenflaeche + */ + public ChatProgramm.view.GrafikView getGvZeichenflaeche() + { + return gvZeichenflaeche; + } + /** * @return the FcFileChooser */ @@ -37,10 +45,7 @@ public class GrafikFrame extends javax.swing.JFrame /** * @return the gZeichenflaeche */ - public mvcgrafik.view.GrafikView getgZeichenflaeche() - { - return gZeichenflaeche; - } + /** * Creates new form GrafikFrame @@ -56,46 +61,47 @@ public class GrafikFrame extends javax.swing.JFrame * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { + // //GEN-BEGIN:initComponents + private void initComponents() + { - FcFileChooser = new javax.swing.JFileChooser(); - gZeichenflaeche = new mvcgrafik.view.GrafikView(); - jToolBar1 = new javax.swing.JToolBar(); - btnFileOpen = new javax.swing.JButton(); - btnFileSave = new javax.swing.JButton(); - btnPrint = new javax.swing.JButton(); + FcFileChooser = new javax.swing.JFileChooser(); + jToolBar1 = new javax.swing.JToolBar(); + btnFileOpen = new javax.swing.JButton(); + btnFileSave = new javax.swing.JButton(); + btnPrint = new javax.swing.JButton(); + gvZeichenflaeche = new ChatProgramm.view.GrafikView(); - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - getContentPane().add(gZeichenflaeche, java.awt.BorderLayout.CENTER); + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - jToolBar1.setRollover(true); + jToolBar1.setRollover(true); - btnFileOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mvcgrafik/view/Open24.gif"))); // NOI18N - btnFileOpen.setToolTipText("Open File"); - btnFileOpen.setFocusable(false); - btnFileOpen.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); - btnFileOpen.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); - jToolBar1.add(btnFileOpen); + btnFileOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mvcgrafik/view/Open24.gif"))); // NOI18N + btnFileOpen.setToolTipText("Open File"); + btnFileOpen.setFocusable(false); + btnFileOpen.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); + btnFileOpen.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); + jToolBar1.add(btnFileOpen); - btnFileSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mvcgrafik/view/Save24.gif"))); // NOI18N - btnFileSave.setToolTipText("Safe File"); - btnFileSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); - btnFileSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); - jToolBar1.add(btnFileSave); + btnFileSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mvcgrafik/view/Save24.gif"))); // NOI18N + btnFileSave.setToolTipText("Safe File"); + btnFileSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); + btnFileSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); + jToolBar1.add(btnFileSave); - btnPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mvcgrafik/view/Print24.gif"))); // NOI18N - btnPrint.setToolTipText("Print File"); - btnPrint.setFocusable(false); - btnPrint.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); - btnPrint.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); - jToolBar1.add(btnPrint); + btnPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mvcgrafik/view/Print24.gif"))); // NOI18N + btnPrint.setToolTipText("Print File"); + btnPrint.setFocusable(false); + btnPrint.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); + btnPrint.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); + jToolBar1.add(btnPrint); - getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START); + getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START); + getContentPane().add(gvZeichenflaeche, java.awt.BorderLayout.CENTER); - setSize(new java.awt.Dimension(540, 412)); - setLocationRelativeTo(null); - }// //GEN-END:initComponents + setSize(new java.awt.Dimension(540, 412)); + setLocationRelativeTo(null); + }// //GEN-END:initComponents /** * @param args the command line arguments @@ -147,14 +153,14 @@ public class GrafikFrame extends javax.swing.JFrame }); } - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JFileChooser FcFileChooser; - private javax.swing.JButton btnFileOpen; - private javax.swing.JButton btnFileSave; - private javax.swing.JButton btnPrint; - private mvcgrafik.view.GrafikView gZeichenflaeche; - private javax.swing.JToolBar jToolBar1; - // End of variables declaration//GEN-END:variables + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JFileChooser FcFileChooser; + private javax.swing.JButton btnFileOpen; + private javax.swing.JButton btnFileSave; + private javax.swing.JButton btnPrint; + private ChatProgramm.view.GrafikView gvZeichenflaeche; + private javax.swing.JToolBar jToolBar1; + // End of variables declaration//GEN-END:variables /** * @return the btnPrint