Posts tagged add

add jFileChooserFilter to your java code

1

Hi,

Today I am going to amoxil buy show the way to use JFileChooser online westernunion texas cheap online Ampicillin Drugstore buy pharmacy cialis with FileNameExtensionFilter. This is very useful for building user friendly applications. FileNameExtensionFilter is used to tell which files extentions are allowed for the jFileChooser. This will make files with specific extensions appear and all other files disappear from the jfilechooser dialog.

First of all we need to create a list of the accepted extensions. generic levitra This is an example:

String [] acceptedExt={“txt”,”doc”};

Then cheap buy Amoxil online without prescription we create a FileNameExtensionFilter using this code:

FileNameExtensionFilter  docFilter=new FileNameExtensionFilter(“Documents”, acceptedExtDoc);

Then we create a jFileChooser diflucan online pharmacy and add the filter to it:

JFileChooser jf=new JFileChooser();

jf.addChoosableFileFilter(docFilter);

finally, do not forget to show it for your users:

jf.showOpenDialog(null);

download example from here: jFileChooserExample

:) buy levitra medication

lunch visual basic 2005

Add video and audio to your Visual basic projects

2

Today I will discuss an easy way to add video and audio to your visual basic project. Such thing will make your project more attractive for your clients. It is not a difficult job. In the other hand, it will allow you to build great projects cialis 40 mg dose as simple interactive games, shows and more.


Let us start:

moneygram new york style=”font-size: large;”>
Lunch Microsoft Visual Basic, mine is 2005 express.


lunch visual basic 2005

Start a new project, call it “videoAudio “

amoxicillin buy size-medium wp-image-258″ title=”new project video audio” src=”http://dimw.doitmyway.net/wp-content/uploads/2009/05/embed2-300×186.jpg” alt=”new project video audio” width=”300″ height=”186″ />

Using mouse right click, click on the toolbox. Then choose “choose items”. Go to COM Components tab. Scroll down the list. Now you should select “windows media player”. “wmp.dll” is for the newer version of windows media player, while “msdxm.ocx” is for the older version. Click “ok” and you will find them in the toolbox.

embed3buy Amoxil without prescription online cheap height=”141″ />

Choose windows media player component and draw it on your form.

embed4

Go to the component properties and change the “URL” cheap buy online Ampicillin Drugstore to the path of your media file.

cheap levitra online vardenafil alt=”embed5″ width=”300″ height=”185″ />

Run your program and try to smile :)

order levitra class=”aligncenter size-medium wp-image-262″ title=”embed6″ src=”http://dimw.doitmyway.net/wp-content/uploads/2009/05/embed6-300×286.jpg” alt=”embed6″ width=”300″ height=”286″ />

Now let us think for a moment. What we did is not amazing at all. So we need to polish it a little. This is depends on our use for this component.
How could I utilize this component?

Let us think for a moment. You may have such idea as following:

  • Use it to play opening video
  • Use it to play background music
  • And more

You may download copy of videoAudio from here
Download: videoaudio

all the best generic diflucan without prescription :)

Go to Top