Sunday, June 14, 2009

Insert Component

Often it is necessary to add a component between components that are already placed in a form. Whenever you add a component between two existing components, the GUI Builder automatically shifts them to make room for the new component. To demonstrate this, we'll insert a JTextField component between the Title: and Nickname: components we added previously.


1. Insert a JTextField component between two JLabel components

* In the Palette window, select the JTextField component from the Swing Controls section.
* Move the cursor over the Title: and Nickname: JLabels on the second row such that the JTextField overlaps both and is aligned to their baselines.
* Observe that the Text Field component is inserted between the Title: and Nickname: Labels.
2. Add a Text Field component.

* Drag a new Text Field component and place it just beside Nickname: Label component.
* Extend the newly added Text Field component to the right edge of the Panel.
Good luck!!!

Read More......

Sunday, May 24, 2009

How to Creating Java Files

NetBeans IDE contains templates and wizards that you can use to create all kinds of source files,

from Java source files to XML documents and resource bundles.
The easiest way to create a file is to right-click the directory
node in the Filesystem window where you want to create
the file and choose from the New submenu in the node's
contextual menu. The New submenu contains shortcuts to
commonly-used templates and an All Templates command
that you can use to choose from all NetBeans templates



To demonstrate some of the IDE's source creation and
editing features, let's recreate the ColorPreview class that
comes with the colorpicker example in the IDE's sample
code. Right-click any directory in your mounted filesystems and choose New > Java Class. Name the
file ColorPreview and click Finish. The file opens in the Source Editor.


Read More......

Monday, April 27, 2009

Java Identifier,,,

Identifiers are names we give to our variables, constants, classes, and methods.
Identifiers is token to word presntation.

Identifiers must comply with these rules:

* The first character of an identifier must be a letter, an underscore(_), or a dollar sign($).
* The rest of the characters in the identifier can be a letter, underscore, dollar sign, or digit. Note that spaces are NOT allowed in identifiers.
* Identifiers are case-sensitive. This means that age and Age are different identifiers.
* Identifiers cannot match any of Java's reserved words.

Although not required, we strongly recommend that you name your identifiers using Java naming conventions.

Examples:
These identifiers are valid:

MyClass
$amount
$change
username
user_name
_sys_var1
totalGrades;
TotalGrades;
one
zero

And These identifiers are NOT valid:

My Class // spaces are not allowed
numberOf*s // the asterisk cannot be used
final // final is a reserved word
1Way // identifiers cannot start with a digit

Read More......

Monday, April 13, 2009

Token_Ring,,,

Token ring local area network (LAN) technology is a local area network protocol which resides at the data link layer (DLL) of the OSI model. It uses a special three-byte frame called a token that travels around the ring.


Unlike Ethernet, Token Ring uses a ring topology whereby the data is sent from one machine to the next and so on around the ring until it ends up back where it started. It also uses a token passing protocol which means that a machine can only use the network when it has control of the Token, this ensures that there are no collisions because only one machine can use the network at any given time.
*The Basics
Here is an animated GIF that shows the basic operation of a Token Ring, and below is an explanation of what is going on.
Although 16Mbps is the standard ring speed these days (and Fast Token Ring is being developed) we will consider a 4Mbps Token Ring in this tutorial to explain the basic concepts.

Read More......

Post Office Protocol 3???

POP3 (Post Office Protocol 3) is the most recent version of a standard protocol for receiving e-mail. POP3 is a client/server protocol in which e-mail is received and held for you by your Internet server.
Periodically, you (or your client e-mail receiver) check your mail-box on the server and download any mail, probably using POP3.
This standard protocol is built into most popular e-mail products, such as Eudora and Outlook Express.
It's also built into the Netscape and Microsoft Internet Explorer browsers.

POP3 is designed to delete mail on the server as soon as the user has downloaded it. However, some implementations allow users or an administrator to specify that mail be saved for some period of time. POP can be thought of as a "store-and-forward" service.

An alternative protocol is Internet Message Access Protocol (IMAP). IMAP provides the user more capabilities for retaining e-mail on the server and for organizing it in folders on the server. IMAP can be thought of as a remote file server.

POP and IMAP deal with the receiving of e-mail and are not to be confused with the Simple Mail Transfer Protocol (SMTP), a protocol for transferring e-mail across the Internet.
You send e-mail with SMTP and a mail handler receives it on your recipient's behalf. Then the mail is read using POP or IMAP.

Read More......

Thursday, April 02, 2009

Reasons to Use a Java Scripting Language

Most scripting languages are dynamically typed. You can usually create new variables without predetermining the variable type, and you can reuse variables to store values of different types. Also, scripting languages tend to perform many type conversions automatically, for example, converting the number 10 to the text "10" as necessary. Although some scripting languages are compiled, most languages are interpreted. Script environments generally perform the script compilation and execution within the same process. Usually, these environments also parse and compile scripts into intermediate code when they are first executed.


These qualities of scripting languages help you write applications faster, execute commands repeatedly, and tie together components from different technologies. Special-purpose scripting languages can perform specific tasks more easily or more quickly than can more general-purpose languages. For example, many developers think that the Perl scripting language is a great way to process text and to generate reports. Other developers use the scripting languages available in bash or ksh command shells for both command and job control. Other scripting languages help to define user interfaces or web content conveniently. Developers might use the Java programming language and platform for any of these tasks, but scripting languages sometimes perform the job as well or better. This fact doesn't detract from the power and richness of the Java platform but simply acknowledges that scripting languages have an important place in the developer's toolbox.

Combining scripting languages with the Java platform provides developers an opportunity to leverage the abilities of both environments. You can continue to use scripting languages for all the reasons you already have, and you can use the powerful Java class library to extend the abilities of those languages. If you are a Java language programmer, you now have the ability to ship applications that your customers can significantly and dynamically customize. The synergy between the Java platform and scripting languages produces an environment in which developers and end users can collaborate to create more useful, dynamic applications.

For example, imagine a calculator with a set of core operations. Although the base calculator may have only four or five fundamental operations, you can provide programmable function keys that the user can customize. Customers can use whatever scripting language they prefer to add mortgage calculations, temperature conversions, or even more complex functionality to the calculator. Another example of this collaboration could be a word processor that allows customers to provide customized filters for generating various file formats. Examples throughout the remainder of this article will show how to use scripting to provide customizable Java applications for your customers.



Read More......

Saturday, February 28, 2009

File Sync Service

Access your files from anywhere!

What's File Sync, or file synchronization? You may also have heard it called File Mirroring, or File Replication. Simply, file sync automatically copies files from one computer to another. Let's describe the problem...

Have you ever left important documents on a laptop, and left it at home or worse, had it stolen? Have you had your hard drive crash, and lost weeks or months of work? What about when the technicians at work imaged your machine, and lost all of your files on your workstation's hard drive? There are many people that have been in a situation like this... ourselves included. We use our own file sync system to keep our files safe. If our hard drive crashes... no problem. Install the client on a new computer, and the files automatically download to the new machine. Forgot the laptop? No problem again. Connect to the web site using the web browser on any machine, and download whatever files are needed. Simple yet powerful.

As well as disaster recovery, use file synchronization for keeping the versions of the files the same on all your machines. When working on a file on one machine, then a different one, it's annoying to have to copy your files back and forth, making sure you are always working on the most recent copy. With file sync, you don't have to carry a floppy, CD, USB stick or whatever to constantly update the file on multiple computers. The file sync system does all the work for you!

There's another benefit of file sync that many of our customers use. If your company or group needs to share files for collaboration work or teleworking, but don't have a server to share them, you can sign up for a shared file sync account. All the files that you choose will be synchronized among all your machines quickly and easily. The files you use will always be available, securely transmitted and stored.

Don't worry about files "out there" on the Internet, either. The Little Networks File Sync uses Blowfish as it's encryption system on the server. Using 128-bit strong encryption, it is very secure. Not even the administrators of the system know what files are stored there. All communications to sync files use SSL, a well-known and secure means of encrypting your communication streams.

You can think of file sync in a couple ways.. as a means of keeping your files up-to-date on all your machines, and as insurance for your data. Did you know 60% of companies that lose their data close down within 6 months? And 72% of business that suffer major data loss disappear within 2 years? Did you know that thousands of PC's from businesses are stolen every year, particularly laptops? Think about what would happen if all your critical business data was lost, and then think about how much it is worth to you. No matter how much it is, it's worth it to be able to recover from a data loss. Look at our Get File Sync! page to find out how easy it is to ensure that your valuable data is available anytime, anywhere.

A free 50 MB account is available, at no cost or obligation to you. Try our time-tested file synchronization solution now!!!!Ok!

Read More......