Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Gaya Penulisan script java source code

Gaya Penulisan script java source code

Ratings: (0)|Views: 213|Likes:
ini adalah beberapa contoh gaya penulisan gaya kode penulisan bahasa pemrograman java. terdapat 3 contoh gaya penulisan program java.
ini adalah beberapa contoh gaya penulisan gaya kode penulisan bahasa pemrograman java. terdapat 3 contoh gaya penulisan program java.

More info:

Published by: Muhammad Arief Irwansyah on May 22, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/13/2014

pdf

text

original

 
Gaya penulisan coding (java)
Artikel ini dari ==>www.ariefirwansyah.comhai hai hai…..lagi pengen coret web ini,, sering kita brosing coding di google,, trus nemucoding yang kita ingin kan,, tapi waktu di liad source code na eh…..ternyata…..ehternyata…… kok lain gaya penulisan na,, yang saya maksut dengan gaya penulisan sepertiyang ada di bawah ini ::==============================================ini yang pertama (1)import javax.swing.*;import java.awt.*;import java.awt.event.*;public class ComboBox{ JComboBox combo; JTextField txt;
public ComboBox(){String course[] = {"Muhammad","Arief","Irwansyah","Cakep"}; JFrame frame = new JFrame("Creating a JComboBox Component"); JPanel panel = new JPanel();combo = new JComboBox(course);combo.setBackground(Color.gray);combo.setForeground(Color.red);txt = new JTextField(10);panel.add(combo);panel.add(txt);frame.add(panel);combo.addItemListener(new ItemListener(){public void itemStateChanged(ItemEvent ie){if ( ie.getStateChange() == ItemEvent.SELECTED ){String str = (String)combo.getSelectedItem();txt.setText(str);}}});frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);frame.setSize(400,200);frame.setVisible(true);}
public static void main(String[] args) {ComboBox asli = new ComboBox();}}==============================================ini yang kedua (2) ::import javax.swing.*;import java.awt.*;import java.awt.event.*;public class a extends JFrame implements ItemListener {String course[] = {"Muhammad","Arief","Irwansyah","Cakep"}; JComboBox combo= new JComboBox(course);
 
 JTextField txt= new JTextField(10); JPanel panel = new JPanel();
public a(){setTitle("Gaya penulisan a");setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);setSize(400,200);}
 public void komponenvisual(){getContentPane().setLayout(null);getContentPane().add(panel); panel.setBounds(0,0,400,200);getContentPane().add(combo);combo.setBounds(10,10,50,20);combo.setBackground(Color.gray);combo.setForeground(Color.red);combo.addItemListener(this); panel.add(combo); panel.add(txt);setVisible(true);}
public void itemStateChanged(ItemEvent ie){if ( ie.getStateChange() == ItemEvent.SELECTED ){String str = (String)combo.getSelectedItem();txt.setText(str);}}public static void main(String[] args) {a b = new a();b.komponenvisual();}}==============================================dan ini yang ketiga (3) ::import javax.swing.*;import java.awt.*;import java.awt.event.*;public class b extends JFrame{String course[] = {"Muhammad","Arief","Irwansyah","Cakep"}; JComboBox combo= new JComboBox(course); JTextField txt= new JTextField(10); JPanel panel = new JPanel();
public b(){setTitle("Gaya penulisan b");setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);setSize(400,200);}
 public void komponenvisual(){getContentPane().setLayout(null);getContentPane().add(panel); panel.setBounds(0,0,400,200);getContentPane().add(combo);

Activity (3)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Susi San liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->