<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learnxpress &#187; component</title>
	<atom:link href="http://www.learnxpress.com/tags/component/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learnxpress.com</link>
	<description>Your Learning Encyclopedia</description>
	<lastBuildDate>Mon, 06 Sep 2010 04:49:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Introducing UltimateSpell 3.6</title>
		<link>http://www.learnxpress.com/introducing-ultimatespell-3-6.html</link>
		<comments>http://www.learnxpress.com/introducing-ultimatespell-3-6.html#comments</comments>
		<pubDate>Thu, 14 Jan 2010 12:39:09 +0000</pubDate>
		<dc:creator>Anand Narayanaswamy</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Channels]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[briefly about c# and c# tools]]></category>
		<category><![CDATA[c sharp compiler download]]></category>
		<category><![CDATA[c# compilers]]></category>
		<category><![CDATA[C# keywords classified]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[conrol]]></category>
		<category><![CDATA[develop in c# in windows98]]></category>
		<category><![CDATA[download C# compiler for windows xp]]></category>
		<category><![CDATA[download different Types Of Compilers in C#]]></category>
		<category><![CDATA[explain briefly about c# and c# tools]]></category>
		<category><![CDATA[karamasoft]]></category>
		<category><![CDATA[multiform application in C#.Net]]></category>
		<category><![CDATA[scada controls silverlight]]></category>
		<category><![CDATA[ultimate spell]]></category>

		<guid isPermaLink="false">http://www.learnxpress.com/introducing-ultimatespell-3-6.html</guid>
		<description><![CDATA[UltimateSpell from Karamasoft helps you add a Microsoft Word®-like spell checker to your ASP.NET website or CMS product in just a few clicks. Includes Word -like Inline Spelling, Word -like Spell Dialog and Life-Saver Samples. Word -like Inline Spelling — Spell check as you type in any editable area by underlining misspelled words with a [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">
<!-- 
lqm_channel=1;
lqm_publisher=175;
lqm_zone=1;
lqm_format=7;
//-->
</script>
<script type="text/javascript" src="http://a.lakequincy.com/s.js"></script></p><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.learnxpress.com%2Fintroducing-ultimatespell-3-6.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.learnxpress.com%2Fintroducing-ultimatespell-3-6.html&amp;style=normal" height="61" width="50" title="Introducing UltimateSpell 3.6" alt="Introducing UltimateSpell 3.6" /><br />
			</a>
		</div>
<p>UltimateSpell from Karamasoft helps you add a Microsoft Word®-like spell checker to your ASP.NET website or CMS product in just a few clicks. Includes Word -like Inline Spelling, Word -like Spell Dialog and Life-Saver Samples. </p>
<ol>
<li>Word -like Inline Spelling — Spell check as you type in any editable area by underlining misspelled words with a red squiggly line. Drag-and-drop onto your web form in Visual Studio, and run. </li>
<li>Word -like Spell Dialog — Display a traditional spell check dialog box to correct spelling mistakes sentence-by-sentence. Spell check 1500 words per second using the provided API. </li>
<li>Life-Saver Samples — Use the provided C# and VB samples as your templates. Copy the most appropriate sample into your web application, and go live as quickly as possible. </li>
<li>All .NET Editions in One — Native builds in .NET 1.1 (Visual Studio 2003), .NET 2.0 (Visual Studio 2005) and .NET 3.5 (Visual Studio 2008) provided in one package. </li>
</ol>
<p><strong>Top 10 Features of Karamasoft UltimateSpell for ASP.NET</strong> </p>
<ol>
<li>Word®-like Spell Checker — Spell check as you type in any editable area by underlining misspelled words with a red squiggly line. You can right-click on a misspelled word and select a suggestion from a context menu. </li>
<li>Spell Check Dialog Box — Word®-like spell check dialog box to display one spelling mistake at a time, and select one of the suggestions from a listbox. Display text sentence-by-sentence in order to understand the context. </li>
<li>Grammar Check Dialog Box — Grammar check dialog box to display grammar errors one at a time sentence-by-sentence. Requires Microsoft Word 2003 or 2007 installed on the server. Recommended for intranet use only due to the Local System requirements of the IIS application pool. Supports .NET 2.0+. </li>
<li>Show Synonyms — Show the synonyms of a word by right-clicking on it and selecting the Synonyms option in the popup context menu. Supports .NET 2.0+. </li>
<li>High Performance — Spell check very long text areas without compromising any performance hits. Send small portions of the text to the server as needed, while the user spell checks through the text. </li>
<li>Fast Spelling — Spell check 1500 words per second using the provided server-side API. Use the same fast spelling engine for inline spelling, dialog box or API. </li>
<li>Auto Correct — Automatically correct your spelling errors as you type. This feature fixes your spelling mistakes if it finds only one suggestion just like in Microsoft Word®. </li>
<li>Auto Find — Automatically find and spell check all editable controls, or specify a comma separated list of control ids to spell check. </li>
<li>Look Up Meaning — Look up the meaning of a suggested word in an online dictionary that you can configure in the language XML file. </li>
<li>34 Dictionaries — Use any of the 34 dictionaries available on our website, or use your own dictionary text file that contains one word per line. </li>
<li>Custom Dictionaries — Add words to your custom dictionaries, and cache them as regular dictionaries. You can use a server-based custom dictionary and a regular dictionary at the same time. </li>
<li>Medical Dictionary — Use the open-source MeDic dictionary as your regular or custom dictionary, or append the content of the MeDic text file to the end of the English dictionary, and use the combined one. </li>
<li>Multi-Language — Display different wordings in the spell check dialog box based on your language by configuring the language XML file. </li>
<li>Spelling Options — Lots of options to change the behavior of the spell checking engine either on the server-side, or on the client-side. </li>
<li>Cache Dictionary — Automatically caches both regular and custom dictionaries for fast interaction and data retrieval. </li>
<li>Selected Area Only — Select a piece of text to spell check by using your mouse or keyboard. You can spell check only the selected area instead of the whole text. </li>
<li>Control Suggestions — Specify the maximum number of suggestions to be returned by the spelling engine for each spelling mistake. </li>
<li>Keep Ignoring — If you click Ignore All to ignore all occurences of a word it will keep ignoring them until you refresh the page. </li>
<li>PostBack on OK — Return to server when the user clicks the OK button on the spell check dialog box bypassing a changed flag. You can see any changes made to the original text during spell checking. </li>
<li>Inside Other Controls — Insert the UltimateSpell control into other server controls such as a datagrid or a user control. </li>
<li>Custom Style — Change the style of the spell button, misspelled word style and spell check dialog box based on your design preferences. </li>
<li>AJAX Enabled — Spell check very long text by sending small blocks of text to server using AJAX techniques without refreshing the page. </li>
<li>Server-Side API — Use the spell checking engine from inside ASP.NET web applications and web services, or Windows Forms .NET applications. </li>
<li>Client-Side API — Open the spell check dialog box from any client-side action by calling the UltimateSpellClick() method and passing the ClientID of the UltimateSpell control as an argument. </li>
<li>Windows Forms Support — Use the Windows Forms samples in C# and VB with full features and user interface. Spell as you type feature is only supported in ASP.NET. </li>
<li>UltimateEditor &amp; UltimateSearch — Built-in integration with our ASP.NET rich text editor and ASP.NET search engine products. </li>
<li>Compliancy — XHTML 1.0 Transitional compliant. </li>
<li>AJAX Support — Microsoft ASP.NET AJAX UpdatePanel, Karamasoft UltimateAjax. </li>
<li>Cross-Browser Support — IE5+, NS7+, Firefox 1.0+, Mozilla 1.0+, Opera9+, Safari 2.0+. </li>
<li>System Requirements — Windows 2000/2003/2008/XP/Vista, IIS 5.0+, ASP.NET 1.1/2.0/3.5.</li>
</ol>
<p>Please visit <a title="http://www.karamasoft.com/UltimateSpell/Features.aspx" href="http://www.karamasoft.com/UltimateSpell/Features.aspx">http://www.karamasoft.com/UltimateSpell/Features.aspx</a> for more information and to download a trial version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learnxpress.com/introducing-ultimatespell-3-6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boost Speed and Memory with DevExpress ASPxGridView</title>
		<link>http://www.learnxpress.com/boost-speed-and-memory-with-devexpress-aspxgridview.html</link>
		<comments>http://www.learnxpress.com/boost-speed-and-memory-with-devexpress-aspxgridview.html#comments</comments>
		<pubDate>Sat, 04 Apr 2009 06:22:32 +0000</pubDate>
		<dc:creator>Anand Narayanaswamy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Whitepapers]]></category>
		<category><![CDATA[ASPxGridView]]></category>
		<category><![CDATA[Boost]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[datasets]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[mailmergelib samples]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://www.learnxpress.com/en/2009/04/04/boost-speed-and-memory-with-devexpress-aspxgridview/</guid>
		<description><![CDATA[With the release of Outlook 97, Microsoft introduced to the masses an entirely new way in which to deliver information to end-users within a grid control. Component vendors such as us then released components which allowed developers to build Windows® and ASP.NET applications that mimicked the capabilities of Outlook 97’s grid. Over the last 10+ [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.learnxpress.com%2Fboost-speed-and-memory-with-devexpress-aspxgridview.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.learnxpress.com%2Fboost-speed-and-memory-with-devexpress-aspxgridview.html&amp;style=normal" height="61" width="50" title="Boost Speed and Memory with DevExpress ASPxGridView" alt="Boost Speed and Memory with DevExpress ASPxGridView" /><br />
			</a>
		</div>
<p>With the release of Outlook 97, Microsoft introduced to the masses an entirely new way in which to deliver information to end-users within a grid control. Component vendors such as us then released components which allowed developers to build Windows® and ASP.NET applications that mimicked the capabilities of Outlook 97’s grid. Over the last 10+ years, countless individuals have come to rely on the grouping/sorting/summary computation capabilities of this new grid metaphor on the Windows and ASP.NET platforms. </p>
<p><strong>The Power of an Outlook® Style Grid</strong>     <br />The real strength of the Outlook style grid lies in its ability to organize information for the end-user and report on that information in an effective manner. In a traditional 2 dimensional grid, a user would not have the luxury to analyze the information displayed on screen. Assume for a moment that a grid is used to display sales information. Old style 2-D grids do not allow the user to group sales information by region and to better understand the data being presented to them. But when using an Outlook style grid, the user is free to group and summarize information by any column…giving them the productivity tools needed to get their job done instantly without generating complex sales reports. </p>
<p><strong>Size Matters      <br /></strong>The UI power available in an Outlook® Style grid, however, comes at a cost. That cost is dataset size. Large datasets in an ASP.NET and Windows Forms application impact the usability of the application. When it comes to this modern grid UI, users will invariably want to analyze information and they will rarely understand why a grid performs well with a 100 records and fails with 100,000 records. To illustrate, let’s continue with our previous example. Assume a developer builds a web or Windows UI that displays sales data within a grid control and during testing with 100 sales records, the web server (or Windows client machine) and the components used to build the application perform admirably. The developer then delivers the solution to market and the customer is elated by the new UI. </p>
<p>As the customer begins adding information to the database and the dataset size grows, problems take shape. Grouping, summary computation, sorting, and navigation speed start to bog down. The problem worsens over time and eventually the developer is left with only a single option &#8211; to restrict the number of records being rendered on screen. </p>
<p>The developer then delivers a modified solution to the customer and the customer asks a very logical question…Why am I not able to group and summarize sales information for my business over the last year? So what if my database has 500,000 records in it? Why can’t I just see the information on screen without having to wait 2 minutes to get incorrect results? </p>
<p><strong>Compromise is Not the Answer</strong>     <br />Outlook style grids are extremely powerful but this power can only be realized if the grid control can consume data effectively. If this is not true…if the grid should only be used to display limited datasets, then why bother using an Outlook style grid? </p>
<p>When we chose to write our ASP.NET and Windows Forms grid, foremost in our minds was performance and optimum memory use against large datasets. Our reasoning was simple &#8211; whether a grid displays 1 record or a million, the server and client should respond instantly and give the end-user the means with which to operate his business without unwanted roadblocks and hurdles. </p>
<p><strong>Let the Database Server Do What it Does Best</strong>     <br />No matter how well one designs a data processing engine, it will never do its job well if one fails to recognize that database specific operations ought to be executed on the database server. No matter how ingenious the algorithms &#8211; no matter how brilliant the technology…if the grid is forced to manage data itself, you can bet that a large dataset will eventually bring the web server or the Windows client to its knees and make the application totally unusable. </p>
<p><strong>Don’t Kill the Web Server and Windows Client</strong>     <br />The obvious question one might ask at this point is why &#8211; why should a large dataset, hundreds of users, and the need to group/sort/navigate records throughout the business day impact the application in such a massive way. The answer is simple: With ASP.NET and Windows, most grid controls need the entire dataset to be loaded and processed for every operation…be it a trivial operation such as record navigation from one page to the next or complex operations such as data grouping. Yes, it’s the web server that is forced into this position by competing grid controls and it is the web server and or Windows client that has to allocate the necessary resources to keep the application running. </p>
<p>At the end of the day, that’s why developers resort to filtering result sets &#8211; they need the web server or Windows client to function and not fail. </p>
<p><strong>Enough with Crippling Limitations</strong>     <br />The new ASPxGridView and XtraGrid Suite confront the limitations we’ve outlined head-on and have been engineered to free you from the hassles you otherwise would be forced to workaround. </p>
<p>Instead of reading the entire dataset from the data server and then managing data within the grid, the ASPxGridView and XtraGrid Suite simply display data that has already been grouped or sorted on the data server. This is possible because of our specially designed data provider included within the suites. This provider can produce smart queries so that all the grid needs to do is download records to be displayed within the current page. If you have 100,000 records in your data source and want to display 10 records on the page, the grid will need to download only 10 records rather than the 100,000 records required with each postback or callback when using competing grid controls. This means that with the ASPxGridView or XtraGrid Suite, what was once simply impossible with competing grids (but entirely needed by end-users) can now be easily accomplished.</p>
<p><em>Figure 1</em> </p>
<p><a href="http://www.learnxpress.com/en/images/2009/04/devexpress-wp-11.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="" border="0" alt="Boost Speed and Memory with DevExpress ASPxGridView" src="http://www.learnxpress.com/en/images/2009/04/devexpress-wp-1-thumb1.gif" width="433" height="500" /></a> </p>
<p><strong>See it for Yourself</strong>     <br />You don’t have to take our word for it. To see how all of this works, review our online 300,000 Records demo and compare results with your current ASP.NET grid control. </p>
<p><em>Figure 2</em> </p>
<p><a href="http://www.learnxpress.com/en/images/2009/04/devexpress-wp-21.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="" border="0" alt="Boost Speed and Memory with DevExpress ASPxGridView" src="http://www.learnxpress.com/en/images/2009/04/devexpress-wp-2-thumb1.png" width="480" height="115" /></a> </p>
<p><strong>Seeing is Believing</strong>     <br />For a detailed tutorial and explanation of the mechanics involved, please review the following video</p>
<p><a href="http://tv.devexpress.com/Content/XtraGrid/ServerMode/default.html" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="devexpress_wp_3" border="0" alt="devexpress_wp_3" src="http://www.learnxpress.com/en/images/2009/04/devexpress-wp-31.png" width="503" height="368" /></a> </p>
<p>Reproduced with permission from <a href="http://www.devexpress.com" target="_blank">DevExpress</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.learnxpress.com/boost-speed-and-memory-with-devexpress-aspxgridview.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding a Choice Component using Java</title>
		<link>http://www.learnxpress.com/adding-a-choice-component-using-java.html</link>
		<comments>http://www.learnxpress.com/adding-a-choice-component-using-java.html#comments</comments>
		<pubDate>Sun, 22 Mar 2009 11:59:03 +0000</pubDate>
		<dc:creator>Anand Narayanaswamy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[briefly about c# and c# tools]]></category>
		<category><![CDATA[c sharp compiler download]]></category>
		<category><![CDATA[c# compilers]]></category>
		<category><![CDATA[C# keywords classified]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[develop in c# in windows98]]></category>
		<category><![CDATA[download C# compiler for windows xp]]></category>
		<category><![CDATA[download different Types Of Compilers in C#]]></category>
		<category><![CDATA[explain briefly about c# and c# tools]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[multiform application in C#.Net]]></category>

		<guid isPermaLink="false">http://www.learnxpress.com/en/2009/03/22/adding-a-choice-component-using-java/</guid>
		<description><![CDATA[In this code snippet, you will learn how to add a choice component using Java language /*&#60;applet code = &#34;Mycombo.class&#34; width = 250 height = 250&#62;&#60;/applet&#62; */ //Compilation: javac Mycombo.java //Execution: appletviewer Mycombo.java import java.awt.*; import java.applet.*; import java.awt.event.*; public class Mycombo extends Applet implements ItemListener { TextField t1; Choice c1; public void init() { [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.learnxpress.com%2Fadding-a-choice-component-using-java.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.learnxpress.com%2Fadding-a-choice-component-using-java.html&amp;style=normal" height="61" width="50" title="Adding a Choice Component using Java" alt="Adding a Choice Component using Java" /><br />
			</a>
		</div>
<p>In this code snippet, you will learn how to add a choice component using Java language</p>
<p> <span id="more-176"></span>
<pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">/*<span style="color: #0000ff">&lt;</span><span style="color: #800000">applet</span> <span style="color: #ff0000">code</span> = <span style="color: #0000ff">&quot;Mycombo.class&quot;</span>
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #ff0000">width</span> = <span style="color: #0000ff">250</span> <span style="color: #ff0000">height</span> = <span style="color: #0000ff">250</span><span style="color: #0000ff">&gt;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">applet</span><span style="color: #0000ff">&gt;</span> */
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">//Compilation: javac Mycombo.java
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">//Execution: appletviewer Mycombo.java
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">import java.awt.*;
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">import java.applet.*;
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">import java.awt.event.*;
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">public class Mycombo extends Applet implements ItemListener
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">{
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">TextField t1;
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">Choice c1;
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">public void init()
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">{
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">c1 = new Choice();
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">c1.addItem(&quot;India&quot;);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">c1.addItem(&quot;USA&quot;);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">c1.addItemListener(this);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">add(c1);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">t1 = new TextField(25);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">add(t1);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">}
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">public void itemStateChanged(ItemEvent e)
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">{
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">String s = (String)e.getItem();
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">if(s == &quot;India&quot;)
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">{
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">t1.setText(&quot;Capital is NewDelhi&quot;);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">}
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">else if (s == &quot;USA&quot;)
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">t1.setText(&quot;Capital is washington&quot;);
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">}
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">}
</pre>
<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.learnxpress.com/adding-a-choice-component-using-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
