Wednesday, May 8, 2013

Complete Guide to JFileChooser

The JFileChooser Swing component let's users explore files on their system. It provides a GUI similar to Windows Explorer found in Windows or Nautilus in Ubuntu. It allows users to navigate through their file system and choose the desired file/directory.
You can use a JFileChooser to open or save files from/to a location which is chosen by the user. Here's a complete guide explaining the use of JFileChooser and it's important properties.

Before we begin, one important thing to note is that JFileChooser is a modal dialog. Whenever a modal dialog is displayed the program execution is paused until an action occurs on the user part. For Ex:

showJFileChooserDialog();
System.out.println("I have to WAIT until an action by the user");

Let us begin with a simple application scenario where you want to display the user's picture on your app's form. Here's the design view of the sample app we gonna develop.


Thursday, April 18, 2013

Google+ Comments for Blogger Blogs

Google launched Google+ comments for Blogger blogs today. Facebook often forgets that Google has more to copy than they could from Google+ :P. It's clear from the design and features that the idea comes from Facebook comments. As of now it's only for Blogger blogs, but it's obvious that it will be opened to all other blogging platforms and websites as the Google+ API grows.



Tuesday, April 2, 2013

Render CSS3 Properties in IE using CSS3 PIE

Every one has a main problem while using CSS3 properties and the problem is Internet Explorer 8 and lower version won't support it and many users still uses Internet Explorer 8. Not only 8 they many of them also uses 6,7 as well as 9. Here in this post, i'll introduce a great framework which will allow few CSS3 properties to work in Internet Exploer 6 and higher versions. 





Saturday, February 23, 2013

Integrating Facebook in ASP Website using C# SDK

If you like it or hate it, you can't get away with the fact that Facebook is present all over the web. Whether it's a complex web application or just a news blog, every site uses Facebook for driving traffic. Integrating your web app or website with Facebook is easy and free. Apart from driving traffic to your site it also makes your web site more social and tailored for the users. You can access user's data from Facebook to simplify or eliminate your own user registration process. If you have a asp.net website you can use Facebook C# SDK for integrating Facebook within your website/web application.

Creating a Facebook App
First of all we need to create an app through which the website will connect with users.
  1. Visit https://developers.facebook.com/apps and click on 'Create New App'.
  2. Fill in the desired App Name and Namespace. Remember these must be unique.
  3. On the basic settings page look for 'Select how your app integrates with Facebook' section and choose 'Website with Facebook Login'.
  4. In the Site URL field, enter your site address. I am working locally, so I added http://localhost:8779/ (Don't forget to put a trailing '/').
Note: Facebook keeps changing the developer interface. So, may be when you're reading this post you have to go through a different set of steps while a creating a new app and configuring it.
Create a new Facebook App

Sunday, February 17, 2013

Designing Bubble Comment Box using CSS and HTML

In this article we are going to create a well Designed Bubble Comment Box. Bubble comment boxes are very useful for making your site's comment boxes look more attractive. Most of mobile chat application uses bubble comment boxes for showing conversation, not only mobile also most of web chat applications also use the same. In this article you will get full guidance for creating it.