|
|
@@ -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") |
|
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//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(); |
|
|
|
|
|
|
|
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
|
|
|
getContentPane().add(gZeichenflaeche, java.awt.BorderLayout.CENTER); |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START); |
|
|
|
|
|
|
|
setSize(new java.awt.Dimension(540, 412)); |
|
|
|
setLocationRelativeTo(null); |
|
|
|
}// </editor-fold>//GEN-END:initComponents |
|
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
|
|
|
private void initComponents() |
|
|
|
{ |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START); |
|
|
|
getContentPane().add(gvZeichenflaeche, java.awt.BorderLayout.CENTER); |
|
|
|
|
|
|
|
setSize(new java.awt.Dimension(540, 412)); |
|
|
|
setLocationRelativeTo(null); |
|
|
|
}// </editor-fold>//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 |