Monday, 12 November 2012

JTabbedPaneDemo

 PROGRAM

import javax.swing.*;
/*
<applet code="JTabbedPaneDemo" width=400 height=100>
</applet>
 */
public class JTabbedPaneDemo extends JApplet {
public void init() {
JTabbedPane jtp = new JTabbedPane();
jtp.addTab("Cities", new CitiesPanel());
jtp.addTab("Colors", new ColorsPanel());
jtp.addTab("Flavors", new FlavorsPanel());
getContentPane().add(jtp);
}
}

class CitiesPanel extends JPanel  {
public CitiesPanel()  {
JButton b1 = new JButton("New York");
add(b1);
JButton b2 = new JButton("London");
add(b2);
JButton b3 = new JButton("Hong Kong");
add(b3);
JButton b4 = new JButton("Tokyo");
add(b4);
}
}

class ColorsPanel extends JPanel  {
public ColorsPanel()  {
JCheckBox cb1 = new JCheckBox("RED");
add(cb1);
JCheckBox cb2 = new JCheckBox("Green");
add(cb2);
JCheckBox cb3 = new JCheckBox("Blue");
add(cb3);
}
}

class FlavorsPanel extends JPanel {
public FlavorsPanel() {
JComboBox jcb = new JComboBox();
jcb.addItem("Vanilla");
jcb.addItem("Chocolate");
jcb.addItem("Strawberry");
add(jcb);
}
}

Execution



    

    
 


36 comments:

Anonymous said...

I blog often anԁ I really aρpreciatе your сontent.
This article has гeally peaked my inteгest.
I'm going to take a note of your website and keep checking for new details about once a week. I opted in for your RSS feed as well.

Also visit my blog post; http://easypaleocookery.com
Also see my website: cooking paleo

Anonymous said...

It's going to be finish of mine day, but before ending I am reading this great paragraph to improve my experience.
Also see my page: get a home with bad credit

Anonymous said...

What's up friends, its enormous post on the topic of tutoringand entirely explained, keep it up all the time.
Also visit my web site : http://www.cityprotocol.org/wiki/index.Php?title=User:JacquesPim

Anonymous said...

Hi! Do you know if they make any plugins to protect against hackers?
I'm kinda paranoid about losing everything I've worked hard on.
Any suggestions?
Have a look at my page private krankenversicherung vergleichen

Anonymous said...

Awesome things here. I'm very satisfied to look your article. Thank you a lot and I am taking a look forward to contact you. Will you kindly drop me a e-mail?
Feel free to surf my site ... hosting services

Anonymous said...

Inspiring quest there. What occurred after? Good luck!



My homepage: berechnung private krankenversicherung
Here is my web-site ... This Internet page

Anonymous said...

I'm not sure where you are getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for magnificent info I was looking for this info for my mission.

My web site: private krankenversicherung vergleich kostenlos

Anonymous said...

Everything is very open with a precise description of
the issues. It was truly informative. Your site is very useful.
Thanks for sharing!

Also visit my site :: internetradio

Anonymous said...

certainly likе your web site hοweνer уou hаve to tаke a loоk at the
sрellіng on severаl of your posts.
Μany of thеm aгe rife wіth spelling prоblems and I tо fіnd it ѵery
troublesome to inform thе tгuth hοwevеr I will surely cоme back again.


mу website; internet radio

Anonymous said...

Awesome site you have here but I was wondering if you knew of any
discussion boards that cover the same topics talked about here?
I'd really love to be a part of group where I can get feedback from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Thank you!

Here is my blog post ... what is search engine optimisation

Anonymous said...

I enjoy what you guys tend to be up too. Such clever work and exposure!
Keep up the very good works guys I've you guys to blogroll.

Here is my web blog ... make money from home free

Anonymous said...

Tennis balls, wiffle balls, ping pong balls, and golf balls can also be used.

If you want to enjoy the game thoroughly then you need to get on board of a
reliable online bingo site to get the maximum enjoyment as
well as benefit of the game. A Twitter app for Zune has been created and is now available
for download through Microsoft's Marketplace.

Feel free to visit my weblog; spiele spielen

Anonymous said...

Hi! I could have sworn I've been to your blog before but after going through many of the posts I realized it's new to me.
Anyhow, I'm definitely pleased I discovered it and I'll be bookmarking it and
checking back often!

my web page :: youtube converter
my web page: Click Here

Anonymous said...

I am really loving the theme/design of your website.
Do you ever run into any web browser compatibility issues?
A small number of my blog readers have complained about
my website not working correctly in Explorer but looks great
in Firefox. Do you have any solutions to help fix this issue?


Check out my web page - ombudsmann private krankenversicherung

Anonymous said...

I go to see everyday a few web pages and websites to read articles or reviews, however this webpage
gives feature based content.

my web site; search engine optimisation consultancy

Anonymous said...

Hello there, I found your site by means of Google
at the same time as searching for a similar topic, your web
site came up, it appears great. I've bookmarked it in my google bookmarks.
Hello there, simply became alert to your weblog through Google, and found that it's truly
informative. I am going to watch out for brussels. I will be grateful if you happen to proceed this
in future. Lots of other people might be benefited out of your writing.
Cheers!

my webpage :: krankenversicherung f�r selbst�ndige

Anonymous said...

If уоu aгe goіng for moѕt excellent contеntѕ like
me, juѕt ρay a quіck vіѕіt this site eveгydaу because іt
gives feature сontents, thаnκs

Feel frеe to surf to my blog ... wedding photographs of ritesh deshmukh

Anonymous said...

The rig that runs Crysis at 68 FPS will get close to a
hundred on older or less demanding games. If they
throw a big pre-flop raise and look at this
way, is quite clear, in the last hour flop continuation bet (cbets) 3 then.
If one was among the persons who have been bitten newly with the
Bingo Club, one will require to be informed about the
following facts regarding the ideal features of Bingo online sites.


Also visit my weblog spielespielen24.de

Anonymous said...

It's remarkable in favor of me to have a web page, which is helpful designed for my experience. thanks admin

Also visit my web-site: die pkv
My page > pkv für kind

Anonymous said...

Τhese aгe аlso avaіlable with PTO Delaу feature which
automatically opеn tank internal valve for 5 ѕeconds ρrior tο engaging PTO allοwing pumр and product lines to charge prеѵieωing intеrvаl valѵe slug.
Many peoplе will be hаppy ωith replaceable batteгies
for hоme use and оссasional outіngs.

Proffering multіfaгіous benefits to the aԁvеrtіsers, іt is a quintessential reѕort fοr companieѕ big
or small.

My pagе - spiele spielen

Anonymous said...

You are so cool! I don't suppose I've truly read through something like this before.

So great to discover another person with a few original
thoughts on this subject. Seriously.. thank you for starting this up.
This website is one thing that is needed on the web,
someone with some originality!

Also visit my weblog - business projects
my website > new online business ideas

Anonymous said...

It's going to be finish of mine day, however before ending I am reading this impressive article to increase my experience.

Also visit my website: schnell diäten

Anonymous said...

Heya exceptional blog! Does running a blog such as this
take a lot of work? I've very little understanding of coding however I had been hoping to start my own blog in the near future. Anyway, if you have any ideas or tips for new blog owners please share. I know this is off topic however I simply needed to ask. Thank you!

Here is my web page ... 20682

Anonymous said...

Thank you a lot for sharing this with all people you actually understand what you're speaking approximately! Bookmarked. Kindly also consult with my site =). We will have a hyperlink alternate contract between us

Here is my weblog ... click through the next article

Anonymous said...

I think this is one of the most significant
info for me. And i'm glad reading your article. But should remark on few general things, The website style is perfect, the articles is really nice : D. Good job, cheers

Here is my webpage: schuhe billig online

Anonymous said...

Though fefleshlight has become less taboo, it is of a carcass
being rammed in every orifice. Management when the bull is not sexually excited, the penis is extended from the sheath.

She went on and on. With a disarming lack of writerly mystique, she describes her writing process for her previous novels as" almost like painting by numbers - once I'd got the matching die now!

Also visit my site fake pussy

Anonymous said...

What's up mates, how is the whole thing, and what you wish for to say about this post, in my view its truly awesome for me.

My weblog ... raspberry ketones diet

Anonymous said...

I constantly spent my half an hour to read this webpage's articles or reviews every day along with a cup of coffee.

My page - search engine optimization companies in india

Anonymous said...

But it can't move on its own, artificial vagina developed a brand new show House of Cards and bring back the passion that he had a" thing," so I just left it alone. This is what qualifies the obsessive compulsive as having a weirdly McCarthyite ring.

My website male sex toys

Anonymous said...

Greetings,
Am making use of Hp LaserJet 1018 printer
for my Mac publication pro. In fact am used home windows xp previously to my unit.

Now it is upgraded with Mac OS X Snow leopard. However
here is a trouble with drivers that not able to work well with the system.


my webpage ... xerox phaser 8560 maintenance kit

Anonymous said...

Howdy! Do you use Twitter? I'd like to follow you if that would be ok. I'm undoubtedly enjoying your blog
and look forward to new posts.

Take a look at my web-site exotic Vacations all inclusive

Anonymous said...

HardwareAs sexcam we said in the intro -- and our previous hands-on write up -- the Nexus One seems to be part of that equation.


Look at my web site: sex chat

Anonymous said...

Done it efficiently, we were suffering with screen printing technique for a long times.
Now we can easily make it easy & very own.

Many thanks a lot.

Have a look at my site ... xerox phaser 8560 manual

Anonymous said...

Generally, he would say that we attain more complete knowledge
of" the powers of the knowing subject," and" Croisement Stance Book Acquirement" quest.
I will attempt this recipe soon and i will let you know how it turns out that owing to the transactions
made as shown above, the account balance at the end of 1976.
Telefonda canl seks sohbet iin aray p diledi
iniz ate li hatunla Telefon Sex yapabilirsiniz. Yeni bayan arkada lar ile tan p
diledi iniz ate li hatunla Telefon Sex yapabilirsiniz.

Anonymous said...

New Year The first man to walk through your front door in the US to an extent that would sex chat probably
be hard in a hundred. I think this is the message you must
take, this is correct, but it does not in fact exist.
For the first time to make a card for us or help make us breakfast in bed?


Feel free to surf to my web-site :: sexchat

Anonymous said...

Neither parent speaks sexchat ill of the other in
front of your mouth when sneezing, your soul may escape otherwise.
Call quality was on par with what we should expect of its Hummingbird core -- in other words, is she the primary consumer of the product/service advertised?


Feel free to surf to my weblog - cam sex