Programlama | Programlama Dilleri | C Programlama Dili |C++

Anasayfa Programlama Java ?le Hesap Makinesi Devam


Java ?le Hesap Makinesi Devam

  1. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  2.         getContentPane().setLayout(layout);
  3.         layout.setHorizontalGroup(
  4.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  5.             .addGroup(layout.createSequentialGroup()
  6.                 .addGap(41, 41, 41)
  7.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  8.                     .addGroup(layout.createSequentialGroup()
  9.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  10.                             .addGroup(layout.createSequentialGroup()
  11.                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  12.                                     .addGroup(layout.createSequentialGroup()
  13.                                         .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
  14.                                         .addGap(40, 40, 40)
  15.                                         .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
  16.                                         .addGap(38, 38, 38)
  17.                                         .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
  18.                                     .addGroup(layout.createSequentialGroup()
  19.                                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
  20.                                             .addComponent(jButton9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  21.                                             .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  22.                                             .addComponent(jButton13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
  23.                                         .addGap(40, 40, 40)
  24.                                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  25.                                             .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  26.                                             .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
  27.                                             .addComponent(Temizle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  28.                                         .addGap(38, 38, 38)
  29.                                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
  30.                                             .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE)
  31.                                             .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  32.                                             .addComponent(nokta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
  33.                                 .addGap(36, 36, 36)
  34.                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  35.                                     .addComponent(carp, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  36.                                     .addComponent(c?kar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  37.                                     .addComponent(topla, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
  38.                                     .addComponent(bol, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
  39.                             .addComponent(Giris))
  40.                         .addContainerGap(41, Short.MAX_VALUE))
  41.                     .addGroup(layout.createSequentialGroup()
  42.                         .addComponent(donusum, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
  43.                         .addGap(27, 27, 27)
  44.                         .addComponent(e?ittir, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
  45.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  46.                         .addComponent(C?k)
  47.                         .addGap(33, 33, 33))))
  48.         );
  49.         layout.setVerticalGroup(
  50.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  51.             .addGroup(layout.createSequentialGroup()
  52.                 .addContainerGap()
  53.                 .addComponent(Giris, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
  54.                 .addGap(30, 30, 30)
  55.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  56.                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  57.                         .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
  58.                         .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
  59.                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  60.                         .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
  61.                         .addComponent(topla, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))
  62.                 .addGap(30, 30, 30)
  63.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  64.                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  65.                         .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  66.                         .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  67.                         .addComponent(c?kar, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
  68.                     .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
  69.                 .addGap(30, 30, 30)
  70.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  71.                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  72.                         .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  73.                         .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  74.                         .addComponent(carp, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
  75.                     .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
  76.                 .addGap(30, 30, 30)
  77.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  78.                     .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  79.                     .addComponent(Temizle, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  80.                     .addComponent(nokta, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  81.                     .addComponent(bol, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
  82.                 .addGap(30, 30, 30)
  83.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  84.                     .addComponent(donusum, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  85.                     .addComponent(e?ittir, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
  86.                     .addComponent(C?k, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
  87.                 .addContainerGap(64, Short.MAX_VALUE))
  88.         );
  89.         pack();
  90.     }// </editor-fold>                       
  91.     private void TemizleActionPerformed(java.awt.event.ActionEvent evt) {                                       
  92.         // TODO add your handling code here:
  93.         Giris.setText("");
  94.  
  95.     }                                      
  96.     private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  97.         // TODO add your handling code here:
  98.         Giris.setText(Giris.getText() + jButton1.getText());
  99.     }                                       
  100.     private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  101.         // TODO add your handling code here:
  102.          Giris.setText(Giris.getText() + jButton2.getText());
  103.     }                                       
  104.     private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  105.         // TODO add your handling code here:
  106.          Giris.setText(Giris.getText() + jButton3.getText());
  107.     }                                       
  108.     private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  109.         // TODO add your handling code here:
  110.          Giris.setText(Giris.getText() + jButton5.getText());
  111.     }                                       
  112.     private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  113.         // TODO add your handling code here:
  114.          Giris.setText(Giris.getText() + jButton6.getText());
  115.     }

SONRAK? SAYFA

 

Yorumlar (0)
Sadece kayıtlı kullanıcılar yorum yazabilir!
Son Güncelleme ( Cuma, 11 Ocak 2013 00:02 )  
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.