* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Hargagame.java
*
* Created on Apr 17, 2017, 12:14:54 PM
*/
/**
*
* @author AudiGiansya
*/
public class Hargagame extends javax.swing.JFrame {
/** Creates new form Hargagame */
public Hargagame() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
RBIDGameDota = new javax.swing.JRadioButton();
RBIDGameAyodance = new javax.swing.JRadioButton();
RBIDGameCOC = new javax.swing.JRadioButton();
RBIDGamePointblank = new javax.swing.JRadioButton();
RBIDGameLostsaga = new javax.swing.JRadioButton();
RBIDGameRF = new javax.swing.JRadioButton();
TextHargaAccountGame = new javax.swing.JTextField();
CBEvents = new javax.swing.JCheckBox();
jLabel2 = new javax.swing.JLabel();
TextHarganyeGan = new javax.swing.JTextField();
TextEvents = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("Harga Account Game");
RBIDGameDota.setText("ID Game DOTA");
RBIDGameDota.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RBIDGameDotaActionPerformed(evt);
}
});
RBIDGameAyodance.setText("ID Game Ayodance");
RBIDGameAyodance.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RBIDGameAyodanceActionPerformed(evt);
}
});
RBIDGameCOC.setText("ID Game COC");
RBIDGameCOC.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RBIDGameCOCActionPerformed(evt);
}
});
RBIDGamePointblank.setText("ID Game Pointblank");
RBIDGamePointblank.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RBIDGamePointblankActionPerformed(evt);
}
});
RBIDGameLostsaga.setText("ID Game Lostsaga");
RBIDGameLostsaga.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RBIDGameLostsagaActionPerformed(evt);
}
});
RBIDGameRF.setText("ID Game RF");
RBIDGameRF.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RBIDGameRFActionPerformed(evt);
}
});
TextHargaAccountGame.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextHargaAccountGameActionPerformed(evt);
}
});
CBEvents.setText("Events");
CBEvents.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CBEventsActionPerformed(evt);
}
});
jLabel2.setText("Harganye Gan");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(31, 31, 31)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(183, 183, 183)
.addComponent(TextHargaAccountGame, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(RBIDGameDota)
.addComponent(RBIDGameAyodance)
.addComponent(RBIDGameCOC)
.addGroup(layout.createSequentialGroup()
.addGap(25, 25, 25)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(TextHarganyeGan, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addGap(66, 66, 66)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(RBIDGameRF)
.addComponent(RBIDGameLostsaga)
.addComponent(RBIDGamePointblank)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(TextEvents, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(CBEvents, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
.addContainerGap(180, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(TextHargaAccountGame, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(31, 31, 31)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(RBIDGameDota)
.addComponent(RBIDGamePointblank))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(RBIDGameAyodance)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(RBIDGameCOC))
.addGroup(layout.createSequentialGroup()
.addComponent(RBIDGameLostsaga)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(RBIDGameRF)))
.addGap(37, 37, 37)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(CBEvents)
.addComponent(jLabel2))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(TextEvents, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextHarganyeGan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(53, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
private void RBIDGameDotaActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
TextHargaAccountGame.setText(""+RBIDGameDota.getText());
TextHarganyeGan.setText(""+1500000);
}
private void RBIDGameAyodanceActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
TextHargaAccountGame.setText(""+RBIDGameAyodance.getText());
TextHarganyeGan.setText(""+1000000);
}
private void RBIDGameCOCActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
TextHargaAccountGame.setText(""+RBIDGameCOC.getText());
TextHarganyeGan.setText(""+500000);
}
private void RBIDGamePointblankActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
TextHargaAccountGame.setText(""+RBIDGamePointblank.getText());
TextHarganyeGan.setText(""+2100000);
}
private void RBIDGameLostsagaActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
TextHargaAccountGame.setText(""+RBIDGameLostsaga.getText());
TextHarganyeGan.setText(""+1900000);
}
private void RBIDGameRFActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
TextHargaAccountGame.setText(""+RBIDGameRF.getText());
TextHarganyeGan.setText(""+5000000);
}
private void CBEventsActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
if(CBEvents.isSelected()){
int HarganyeGan=Integer.parseInt(TextHarganyeGan.getText());
int Events=HarganyeGan/10;
TextEvents.setText(""+Events);
}else{
TextEvents.setText(""+0);
}
private void TextHargaAccountGameActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Hargagame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Hargagame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Hargagame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Hargagame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Hargagame().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JCheckBox CBEvents;
private javax.swing.JRadioButton RBIDGameAyodance;
private javax.swing.JRadioButton RBIDGameCOC;
private javax.swing.JRadioButton RBIDGameDota;
private javax.swing.JRadioButton RBIDGameLostsaga;
private javax.swing.JRadioButton RBIDGamePointblank;
private javax.swing.JRadioButton RBIDGameRF;
private javax.swing.JTextField TextEvents;
private javax.swing.JTextField TextHargaAccountGame;
private javax.swing.JTextField TextHarganyeGan;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
// End of variables declaration
}

0 Comments for "Jual Beli ID Game "