<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dho~doy Blog</title>
	<atom:link href="http://dody02.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dody02.wordpress.com</link>
	<description>You can, if you think you can</description>
	<lastBuildDate>Fri, 19 Jun 2009 08:44:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dody02.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dho~doy Blog</title>
		<link>http://dody02.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dody02.wordpress.com/osd.xml" title="Dho~doy Blog" />
	<atom:link rel='hub' href='http://dody02.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Tugas Java Ice Cream</title>
		<link>http://dody02.wordpress.com/2009/06/19/tugas-java-ice-cream/</link>
		<comments>http://dody02.wordpress.com/2009/06/19/tugas-java-ice-cream/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:44:44 +0000</pubDate>
		<dc:creator>dodykurniawan</dc:creator>
				<category><![CDATA[Tugas Kuliah]]></category>

		<guid isPermaLink="false">http://dody02.wordpress.com/?p=83</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=83&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: jscript;">

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* tugas.java
*
* Created on Jun 20, 2009, 7:45:01 PM
*/

/**
*
* @author user
*/
public class tugas extends javax.swing.JFrame {

/** Creates new form tugas */
public tugas() {
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(&quot;unchecked&quot;)
// &amp;amp;amp;amp;lt;editor-fold defaultstate=&quot;collapsed&quot; desc=&quot;Generated Code&quot;&amp;amp;amp;amp;gt;
private void initComponents() {

RASA = new javax.swing.ButtonGroup();
jLabel1 = new javax.swing.JLabel();
NAMA = new javax.swing.JTextField();
jPanel1 = new javax.swing.JPanel();
KODE = new javax.swing.JComboBox();
jPanel2 = new javax.swing.JPanel();
HARGA = new javax.swing.JTextField();
jPanel3 = new javax.swing.JPanel();
COKLAT = new javax.swing.JRadioButton();   VANILLA = new javax.swing.JRadioButton();
STROBERI = new javax.swing.JRadioButton();
jPanel4 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
JMLHARGA = new javax.swing.JTextField();
JUMLAH = new javax.swing.JTextField();
jPanel5 = new javax.swing.JPanel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
TOTAL = new javax.swing.JTextField();
PPN = new javax.swing.JTextField();
BERSIH = new javax.swing.JButton();
KELUAR = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle(&quot;ICE CREAM&quot;);

jLabel1.setText(&quot;Nama Pembeli&quot;);

jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, &quot;Nama Ice Cream&quot;, javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(&quot;Tahoma&quot;, 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N

KODE.setModel(new javax.swing.DefaultComboBoxModel(new String[] { &quot;Conello&quot;, &quot;Moo&quot; }));
KODE.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
KODEActionPerformed(evt);
}
);

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(KODE, 0, 84, Short.MAX_VALUE)
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(KODE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, &quot;Harga&quot;, javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(&quot;Tahoma&quot;, 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N

javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(HARGA, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(HARGA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, &quot;Rasa Ice Cream&quot;, javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(&quot;Tahoma&quot;, 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N

RASA.add(COKLAT);
COKLAT.setText(&quot;Coklat&quot;);
COKLAT.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
COKLATActionPerformed(evt);
}
});

RASA.add(VANILLA);
VANILLA.setText(&quot;Vanilla&quot;);
VANILLA.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
VANILLAActionPerformed(evt);
}
});

RASA.add(STROBERI);
STROBERI.setText(&quot;Stroberi&quot;);
STROBERI.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
STROBERIActionPerformed(evt);
}
});

javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(COKLAT)
.addComponent(VANILLA)
.addComponent(STROBERI))
.addContainerGap(30, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(COKLAT)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(VANILLA)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(STROBERI))
);

jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, &quot;Transaksi&quot;, javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(&quot;Tahoma&quot;, 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N

jLabel2.setText(&quot;Jumlah Beli&quot;);

jLabel3.setText(&quot;Jumlah Harga&quot;);

JUMLAH.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
JUMLAHKeyPressed(evt);
}
});

javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(18, 18, 18)
.addComponent(JUMLAH, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(JMLHARGA, javax.swing.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)))
.addContainerGap())
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(JUMLAH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(JMLHARGA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
);

jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, &quot;Pembayaran&quot;, javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(&quot;Tahoma&quot;, 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N

jLabel4.setText(&quot;PPn 10%&quot;);

jLabel5.setText(&quot;Total Bayar&quot;);

javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5)
.addComponent(jLabel4))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(PPN)
.addComponent(TOTAL, javax.swing.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE))
.addContainerGap(28, Short.MAX_VALUE))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(PPN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(TOTAL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(17, Short.MAX_VALUE))
);

BERSIH.setText(&quot;BERSIH&quot;);
BERSIH.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BERSIHActionPerformed(evt);
}
});

KELUAR.setText(&quot;KELUAR&quot;);
KELUAR.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
KELUARActionPerformed(evt);
}
});

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(NAMA, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(21, 21, 21)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(BERSIH)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(KELUAR))
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(NAMA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(BERSIH)
.addComponent(KELUAR))))
.addContainerGap(23, Short.MAX_VALUE))
);

pack();
}// &amp;amp;amp;amp;lt;/editor-fold&amp;amp;amp;amp;gt;

private void KODEActionPerformed(java.awt.event.ActionEvent evt) {

// TODO add your handling code here:
}

private void COKLATActionPerformed(java.awt.event.ActionEvent evt) {

String kode;
kode=(String)KODE.getSelectedItem();

if (kode.equalsIgnoreCase(&quot;Conello&quot;)&amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;COKLAT.isSelected())
HARGA.setText(&quot;3000&quot;);
else if (kode.equalsIgnoreCase(&quot;Moo&quot;)&amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;COKLAT.isSelected())
HARGA.setText(&quot;2000&quot;);

JUMLAH.requestFocus();
// TODO add your handling code here:
}

private void VANILLAActionPerformed(java.awt.event.ActionEvent evt) {

String kode;
kode=(String)KODE.getSelectedItem();

if (kode.equalsIgnoreCase(&quot;Conello&quot;)&amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;VANILLA.isSelected())
HARGA.setText(&quot;3250&quot;);
else if (kode.equalsIgnoreCase(&quot;Moo&quot;)&amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;VANILLA.isSelected())
HARGA.setText(&quot;2100&quot;);

JUMLAH.requestFocus();
// TODO add your handling code here:
}

private void STROBERIActionPerformed(java.awt.event.ActionEvent evt) {

String kode;
kode=(String)KODE.getSelectedItem();

if (kode.equalsIgnoreCase(&quot;Conello&quot;)&amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;STROBERI.isSelected())
HARGA.setText(&quot;3500&quot;);
else if (kode.equalsIgnoreCase(&quot;Moo&quot;)&amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;STROBERI.isSelected())
HARGA.setText(&quot;2150&quot;);

JUMLAH.requestFocus();
// TODO add your handling code here:
}

private void KELUARActionPerformed(java.awt.event.ActionEvent evt) {

System.exit(0);
// TODO add your handling code here:
}

private void JUMLAHKeyPressed(java.awt.event.KeyEvent evt) {

int harga,jumlah,jmlharga;
double ppn,total;

harga=Integer.parseInt(HARGA.getText());
jumlah=Integer.parseInt(JUMLAH.getText());

jmlharga=harga*jumlah;
ppn=0.1*jmlharga;
total=jmlharga+ppn;

JMLHARGA.setText(Integer.toString(jmlharga));
PPN.setText(Double.toString(ppn));
TOTAL.setText(Double.toString(total));

// TODO add your handling code here:
}

private void BERSIHActionPerformed(java.awt.event.ActionEvent evt) {

NAMA.setText(&quot;&quot;);
HARGA.setText(&quot;&quot;);
JUMLAH.setText(&quot;&quot;);
JMLHARGA.setText(&quot;&quot;);
PPN.setText(&quot;&quot;);
TOTAL.setText(&quot;&quot;);
NAMA.requestFocus();

// TODO add your handling code here:
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new tugas().setVisible(true);
}
});
}

// Variables declaration - do not modify
private javax.swing.JButton BERSIH;
private javax.swing.JRadioButton COKLAT;
private javax.swing.JTextField HARGA;
private javax.swing.JTextField JMLHARGA;
private javax.swing.JTextField JUMLAH;
private javax.swing.JButton KELUAR;
private javax.swing.JComboBox KODE;
private javax.swing.JTextField NAMA;
private javax.swing.JTextField PPN;
private javax.swing.ButtonGroup RASA;
private javax.swing.JRadioButton STROBERI;
private javax.swing.JTextField TOTAL;
private javax.swing.JRadioButton VANILLA;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel5;
// End of variables declaration
}
</pre>
<p><img class="aligncenter size-full wp-image-84" title="dody" src="http://dody02.files.wordpress.com/2009/06/dody.jpg?w=419&#038;h=315" alt="dody" width="419" height="315" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dody02.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dody02.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dody02.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dody02.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dody02.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dody02.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dody02.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dody02.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dody02.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dody02.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dody02.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dody02.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dody02.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dody02.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=83&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dody02.wordpress.com/2009/06/19/tugas-java-ice-cream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47d248565535b670ca5d953486380f81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dodykurniawan</media:title>
		</media:content>

		<media:content url="http://dody02.files.wordpress.com/2009/06/dody.jpg" medium="image">
			<media:title type="html">dody</media:title>
		</media:content>
	</item>
		<item>
		<title>Nama</title>
		<link>http://dody02.wordpress.com/2009/05/08/nama/</link>
		<comments>http://dody02.wordpress.com/2009/05/08/nama/#comments</comments>
		<pubDate>Fri, 08 May 2009 08:13:06 +0000</pubDate>
		<dc:creator>dodykurniawan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dody02.wordpress.com/?p=78</guid>
		<description><![CDATA[nama adalah sebuah harapan&#8230; sebuah harapan orang tua kpd qt&#8230; namun mengapa sering x qt tak menyadarinya&#8230; maaf yah yg udah seenaknya saya ubah&#8221; namanya selama ini.. yg memanggil dengans ebutan&#8221; lain&#8230; apalagi klo itu sebutan yg tidak baik.. maap smuanya.. ya allah ampuni dosa hambamu ini&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=78&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>nama adalah sebuah harapan&#8230;<br />
sebuah harapan orang tua kpd qt&#8230;<br />
namun mengapa sering x qt tak menyadarinya&#8230;<br />
maaf yah yg udah seenaknya saya ubah&#8221; namanya selama ini..<br />
yg memanggil dengans ebutan&#8221; lain&#8230;<br />
apalagi klo itu sebutan yg tidak baik..<br />
maap smuanya..<br />
ya allah ampuni dosa hambamu ini&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dody02.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dody02.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dody02.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dody02.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dody02.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dody02.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dody02.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dody02.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dody02.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dody02.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dody02.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dody02.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dody02.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dody02.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=78&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dody02.wordpress.com/2009/05/08/nama/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47d248565535b670ca5d953486380f81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dodykurniawan</media:title>
		</media:content>
	</item>
		<item>
		<title>Tugas Java 2</title>
		<link>http://dody02.wordpress.com/2009/04/24/tugas-java-2/</link>
		<comments>http://dody02.wordpress.com/2009/04/24/tugas-java-2/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 12:50:06 +0000</pubDate>
		<dc:creator>dodykurniawan</dc:creator>
				<category><![CDATA[Tugas Kuliah]]></category>

		<guid isPermaLink="false">http://dody02.wordpress.com/?p=69</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=69&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: java;">
import java.io.*; //--&amp;gt; mengambil class Stream I/O yg terdapat dijava
import java.lang.*; //--&amp;gt; mengambil class untuk convert nilai yg terdapat dijava

public class FriedChicken {

public FriedChicken () {
}

public static void main(String[] args) throws IOException {
String readStr  = &quot;&quot;;
int bj          = 0;
double Total    = 0;
int saveSesion  = 0;
int i           = 0;
double pajak    = 0;
SetTampilan st = new SetTampilan();
st.tmpAwal();
String jp,bp    = &quot;&quot;;

/*membuat object baru dari class InputStreamReader &amp;amp; BufferedReader
gunanya untuk membaca proses inputan user dari keyboard*/

InputStreamReader ir = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(ir);

System.out.print(&quot;Banyak Jenis : &quot;);
readStr     = br.readLine();
bj          = Integer.parseInt(readStr);

for (i=1; i&amp;lt;=bj; i++) {
System.out.print(&quot;Jenis Potong [D/P/S] : &quot;);
jp      = br.readLine();
System.out.print(&quot;Banyak Potong : &quot;);
bp      = br.readLine();
Total   = Total + st.cbHitung(jp,Integer.parseInt(bp),i);
}

System.out.println(&quot;Jumlah Bayar :\t &quot; + Total);
pajak   = 0.1 * Total;
System.out.println(&quot;Pajak 10% :\t &quot; + pajak);
System.out.println(&quot;Total Bayar :\t &quot; + (Total+pajak));
}

}

// class kedua untuk load tampilan

class SetTampilan {
public SetTampilan() {
}

void tmpAwal() {
System.out.println(&quot;\n|-----------------------|&quot;);
System.out.println(&quot;|=GEROBAK FRIED CHICKEN=|&quot;);
System.out.println(&quot;|-----------------------|&quot;);
System.out.println(&quot;|Kode\t Jenis\t Harga\t|&quot;);
System.out.println(&quot;|-----------------------|&quot;);
System.out.println(&quot;|D\t Dada\t 2500\t|&quot;);
System.out.println(&quot;|P\t Paha\t 2000\t|&quot;);
System.out.println(&quot;|S\t Sayap\t 1500\t|&quot;);
System.out.println(&quot;|-----------------------|\n&quot;);
}
static double cbHitung (String jnsPotong, int bnykPotong,int ctr) {
double ttlForSesion    = 0;

if (jnsPotong.equals(&quot;D&quot;)) {
ttlForSesion    = 2500 * bnykPotong;
System.out.println(&quot;\n|-Data ke: &quot;+ ctr +&quot;&quot;);
System.out.println(&quot;|-------------------------------|&quot;);
System.out.println(&quot;|Jenis Potong\t| : |&quot; + jnsPotong + &quot;\t\t|&quot;);
System.out.println(&quot;|Harga Satuan\t| : |2500&quot; + &quot;\t|&quot;);
System.out.println(&quot;|Banyak Beli\t| : |&quot; + bnykPotong + &quot;\t\t|&quot;);
System.out.println(&quot;|Jumlah Harga\t| : |&quot; + ttlForSesion + &quot;\t|&quot;);
System.out.println(&quot;|-------------------------------|\n&quot;);
} else if (jnsPotong.equals(&quot;P&quot;)) {
ttlForSesion    = 2000 * bnykPotong;
System.out.println(&quot;\nData ke: &quot;+ ctr +&quot;&quot;);
System.out.println(&quot;|-------------------------------|&quot;);
System.out.println(&quot;|Jenis Potong\t| : |&quot; + jnsPotong + &quot;\t\t|&quot;);
System.out.println(&quot;|Harga Satuan\t| : |2000&quot; + &quot;\t|&quot;);
System.out.println(&quot;|Banyak Beli\t| : |&quot; + bnykPotong + &quot;\t\t|&quot;);
System.out.println(&quot;|Jumlah Harga\t| : |&quot; + ttlForSesion + &quot;\t|&quot;);
System.out.println(&quot;|-------------------------------|\n&quot;);
} else if (jnsPotong.equals(&quot;S&quot;)) {
ttlForSesion    = 1500 * bnykPotong;
System.out.println(&quot;\nData ke: &quot;+ ctr +&quot;&quot;);
System.out.println(&quot;|-------------------------------|&quot;);
System.out.println(&quot;|Jenis Potong\t| : |&quot; + jnsPotong + &quot;\t\t|&quot;);
System.out.println(&quot;|Harga Satuan\t| : |1500&quot; + &quot;\t|&quot;);
System.out.println(&quot;|Banyak Beli\t| : |&quot; + bnykPotong + &quot;\t\t|&quot;);
System.out.println(&quot;|Jumlah Harga\t| : |&quot; + ttlForSesion + &quot;\t|&quot;);
System.out.println(&quot;|-------------------------------|\n&quot;);
} else {
System.out.println(&quot;---Input Error---&quot;);
System.exit(1);
}
return ttlForSesion;
}
}
</pre>
<div id="attachment_75" class="wp-caption alignnone" style="width: 361px"><img class="size-full wp-image-75" title="ss-java2" src="http://dody02.files.wordpress.com/2009/04/ss-java22.jpg?w=351&#038;h=535" alt="Scree Shoot Tugas java 2" width="351" height="535" /><p class="wp-caption-text">Scree Shoot Tugas java 2</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dody02.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dody02.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dody02.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dody02.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dody02.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dody02.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dody02.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dody02.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dody02.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dody02.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dody02.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dody02.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dody02.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dody02.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=69&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dody02.wordpress.com/2009/04/24/tugas-java-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47d248565535b670ca5d953486380f81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dodykurniawan</media:title>
		</media:content>

		<media:content url="http://dody02.files.wordpress.com/2009/04/ss-java22.jpg" medium="image">
			<media:title type="html">ss-java2</media:title>
		</media:content>
	</item>
		<item>
		<title>Portofolio</title>
		<link>http://dody02.wordpress.com/2009/04/21/portofolio/</link>
		<comments>http://dody02.wordpress.com/2009/04/21/portofolio/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 07:41:36 +0000</pubDate>
		<dc:creator>dodykurniawan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dody02.wordpress.com/?p=44</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=44&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-45" title="Boot Up Screen Solo Navigation" src="http://dody02.files.wordpress.com/2009/04/boot-up3.jpg?w=200&#038;h=113" alt="Boot Up Screen Solo Navigation" width="200" height="113" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dody02.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dody02.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dody02.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dody02.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dody02.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dody02.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dody02.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dody02.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dody02.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dody02.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dody02.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dody02.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dody02.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dody02.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=44&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dody02.wordpress.com/2009/04/21/portofolio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47d248565535b670ca5d953486380f81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dodykurniawan</media:title>
		</media:content>

		<media:content url="http://dody02.files.wordpress.com/2009/04/boot-up3.jpg" medium="image">
			<media:title type="html">Boot Up Screen Solo Navigation</media:title>
		</media:content>
	</item>
		<item>
		<title>Portofolio Design</title>
		<link>http://dody02.wordpress.com/2009/04/21/portofolio-design/</link>
		<comments>http://dody02.wordpress.com/2009/04/21/portofolio-design/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 07:35:21 +0000</pubDate>
		<dc:creator>dodykurniawan</dc:creator>
				<category><![CDATA[Artikel]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Portofolio]]></category>
		<category><![CDATA[T.I]]></category>
		<category><![CDATA[Tugas Kuliah]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dody02.wordpress.com/2009/04/21/portofolio-design/</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=40&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=40&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dody02.wordpress.com/2009/04/21/portofolio-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47d248565535b670ca5d953486380f81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dodykurniawan</media:title>
		</media:content>
	</item>
		<item>
		<title>You can, if you think you can</title>
		<link>http://dody02.wordpress.com/2009/03/24/hello-world/</link>
		<comments>http://dody02.wordpress.com/2009/03/24/hello-world/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 01:51:58 +0000</pubDate>
		<dc:creator>dodykurniawan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Assalamu&#8217;alaikum Wr.Wb<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=1&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Assalamu&#8217;alaikum Wr.Wb</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dody02.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dody02.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dody02.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dody02.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dody02.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dody02.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dody02.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dody02.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dody02.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dody02.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dody02.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dody02.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dody02.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dody02.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dody02.wordpress.com&amp;blog=7078964&amp;post=1&amp;subd=dody02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dody02.wordpress.com/2009/03/24/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47d248565535b670ca5d953486380f81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dodykurniawan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
