Binding di Netbeans


Langkah-langkah membuat Binding:

  1. Buat project baru. File > New Project
    • Categories: java, Projects: Java Application. Next
    •  Project Name: BindingSlider, uncheck Create Main Class. Finish
  2. Di Projects window, klik kanan project BindingSlider > JFrameForm
    • Class Name: NumberSliderFrame, Package: numberSlider. Finish
    • Frame baru terbuka pada mode design di desain area.
  3. Menambahkan komponen JSlider dan JTextArea.
    • Buka jendela palette di sebelah kanan. Jika belum ada, klik windows > palette (ctrl+shift+8).
    • Drag JSlider ke dalam Frame.
    • Lakukan hal yang sama untuk membuat JTextArea.
  4. Merubah nama variable komponen
    • klik kanan JSlider > Change Variable Name > masukan “slider”
    • klik kanan JTextAea > Change Variable Name > masukan “txt”
  5. Membuat binding
    • klik kanan txt > bind > text
    • pada Binding Source pilih slider
    • Binding Expresion: value int
    • OK
  6. Tekan shitf + F6

Selamat mencoba, silahkan dikembangkan untuk komponen yang lain.

About windupurnomo

I'm interested in programming. I am active with several programming such as Java, C #, C, JavaScript, HTML. I'm also develop desktop application (Java Swing), Mobile Application (Android), and Web programming (ASP MVC).
This entry was posted in Sistem Berorientasi Objek. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s