About Me

It's me, Arif N. In this blog I'll write about my adventure related to computer, programming, and anything that I found interesting. I wish you a happy reading.. :D

Archive for March, 2009

Beberapa hari yang lalu, salah seorang teman saya bertanya mengenai postingan saya mengenai koneksi wireless di rumah saya. Ia menanyakan pada saya, bagaimana cara membagi koneksi Internet dengan menggunakan wireless. Tulisan ini saya tujukan untuk menjawab pertanyaan tersebut.

Struktur Network

Struktur Network

Sebelumnya, saya akan memberikan gambaran mengenai struktur jaringan yang telah saya buat di rumah. Koneksi Internet didapatkan dari modem yang terhubung dengan komputer pertama di lantai 1 dengan kabel UTP. Koneksi ini kemudian akan disebarkan dengan menggunakan wireless pada komputer pertama. Komputer pertama dalam hal ini akan menjadi access point. Komputer kedua mendapatkan sinyal dari komputer pertama dan dengan melalui komputer tersebut dapat terkoneksi dengan Internet. Dalam tulisan ini, saya menggunakan sistem operasi Windows XP pada kedua komputer.

Learn more ...

bored with the internet (image courtesy of Randall Munroe of http://xkcd.com)

bored with the internet (image courtesy of Randall Munroe)

Source: http://xkcd.com

P.S. Livejournal is one of blog provider.

Hi there,

I have a habit. I usually turn on my YM when I was online. Nothing special, huh? I guess most of the people did that. Lately, some of my friends asked me a question. Why I have some small crown icon near my YM’s status. I didn’t notice that. Because I can’t see my own status when I was online, right? I didn’t know about that, so I told them that maybe YM thinks that I was a king. Lame, right?

:ketawa:

YM "special icon"

YM "special icon"

Yesterday, when I was bored, I saw all of the features in my YM. When I click my photo, I could see that crown icon. Hey, I could click the icon. The icon brought me to a page that stated that I was a power user of YM. What’s the reason?

You stay in touch with tons of friends with Yahoo! Messenger, and you push Yahoo! Messenger to the limits. As a special thanks, we’d like to reward you with some perks.

Okay.. It means I’ve spent so many times online using YM. I think it was kind of reward from Yahoo! and I really appreciated it. Beside, they gave some extra features to the power user. Like changing the power user icon, access to special avatars called Power User Luau, IM environmet with pictures from Flickr, opportunity to join All Star Yahoo! groups, and priority to Customer Care services.

I know maybe I wouldn’t use all of the features they provided. But I think, it’s their way to show their thanks. And I really appreciate it. Thanks..

Are you a power user too?

Hi there..

Long time ago, I got some challenge to create some MDI (Multiple Document Interface) application. Why I called it challenge? Because I must create it with Java and I didn’t have experience on using Swing. But thanks to Netbeans, it makes Swing gui development far easier.

Netbeans provided some tools for gui building. You just need to drag-and-drop, edit some properties, and adding some event-handling. Voila, your desktop application will be up and running. But there is a but. In MDI application, we’ll need a scrollable desktop pane. For your information, desktop pane is a home for all of child windows. If I dragged the child window outside the desktop pane, the desktop pane should automatically give scroll to facilitate it. Java have library to implement dekstop pane. It’s called JDesktopPane. But the usual JDesktopPane didn’t have support for auto-scrolling.

Gerald Nunn in Java World site write a way to conquer this deficiencies. He create some libraries that we can use to enhance the usual JDesktopPane. He called the object MDIDesktopPane. All we have to do are just download it, link it to our codes, and use it.

JFrame with MDIDesktopPane preview

JFrame with MDIDesktopPane preview

In Netbeans, these were I did:

  1. I extracted the sample code (library) into the same package with my gui package.
  2. Using gui builder tools provided by Netbeans, I created JFrame and inside it, I added JMenuBar, JItem, and JMenuItem as necessary.
  3. Using gui builder, Netbeans will generate function called initComponents. This function lists all of the variable declarations and gui setups for components added before.
  4. In the JFrame constructor, the initComponents function will be called. In this area, we will added the MDIDesktopPane init.
  5. Before that, I created MDIDesktopPane declaration. It will not far from this:
    private MDIDesktopPane desktop = new MDIDesktopPane();
    private JScrollPane scrollPane = new JScrollPane();

    We need JScrollPane because it will support the scrolling functions.

  6. Then, after the initComponents function, I added the MDIDesktopPane and the JScrollPane to the frame.
    jMenuBar1.add(new WindowMenu(desktop));
    scrollPane.getViewport().add(desktop);
    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(scrollPane,BorderLayout.CENTER);

    FYI, jMenuBar1 was the variable name of my JMenuBar. It means I added WindowMenu of the MDIDesktop to the menu bar. WindowMenu was a class to control the display of all of the child menu like cascaded or tiled windows.

  7. It’s done. It’s simple, right.

With this MDIDesktopPane and WindowMenu class, I finally conquer the scrollable desktop pane. Thanks to Gerald Nunn for his great class.

Hiya… Finally, I created another design for my blog.. This time, it’s called Dust.

So, what do u think? I need some suggestions before I launch it for public release… Comments are always welcome..