HELP IN AWT Need to apply them within 6hrs

import java.awt.*;
import java.awt.event.*;
class Seethis implements ItemListener
     //Voting Screen Components
     Frame Voting;
     Panel p,p1,p2;
     Checkbox ABC, XYZ, PQR, MNO, DES;
     CheckboxGroup cbg;
     Label chosen;
     Button Vote, Vote2, Vote3;
     Seethis()
          //Initializing the components of Third Screen
          Voting = new Frame("");
          Voting.setLayout(new BorderLayout());
          p = new Panel();
          p1 = new Panel();
          p2 = new Panel();
          p.setLayout(new GridLayout(5,0,30,30)); // GridLayout(int rows, int cols, int hgap, int vgap)
          p2.setLayout(new GridLayout(0,1,30,30)); // GridLayout(int rows, int cols, int hgap, int vgap)
          ABC = new Checkbox("ABC",cbg,true);
          XYZ = new Checkbox("XYZ",cbg,false);
          PQR = new Checkbox("PQR",cbg,false);
          MNO = new Checkbox("MNO",cbg,false);
          DES = new Checkbox("DES",cbg,false);
          Vote2 = new Button("CLICK HERE TO CAST YOUR VOTE");
          //Adding the components of the Third Screen
          p.add(ABC);
          p.add(XYZ);
          p.add(PQR);
          p.add(MNO);
          p.add(DES);
          p2.add(Vote2);
          //Positioning the Components of the Third Screen
          Voting.add(p,BorderLayout.NORTH);
          Voting.add(p1,BorderLayout.CENTER);
          Voting.add(p2,BorderLayout.SOUTH);
          //Registering Listeners of the Components of Third Screen
          ABC.addItemListener(this);
          XYZ.addItemListener(this);
          PQR.addItemListener(this);
          MNO.addItemListener(this);
          DES.addItemListener(this);
          Voting.setSize(200,400);
          Voting.setVisible(true);
          public void itemStateChanged(ItemEvent event)
               if (cbg.getSelectedCheckbox() == ABC)
                    Vote2.setEnabled(true);
               if (cbg.getSelectedCheckbox() == XYZ)
                    Vote2.setEnabled(true);
               if (cbg.getSelectedCheckbox() == PQR)
                    Vote2.setEnabled(true);
               if (cbg.getSelectedCheckbox() == MNO)
                    Vote2.setEnabled(true);
               if (cbg.getSelectedCheckbox() == DES)
                    Vote2.setEnabled(true);
     public static void main(String[] args)
          Seethis x = new Seethis();
}I am new to java and I am not able to find the correct syntax for:
1) setting e.g: Comic Sans font for Labels, CheckBox from awt
2) how can i change the background color or frame and its components
if there are codes for each color how should i find which is for which one
3) In the code above i want to center i.e. bring all the checkboxes or the entire checkboxgroup in the center rather than in left
4) The button at the bottom sticks to the frame......I want it to appear like a normal button

I am new to java and I am not able to find the
correct syntax for:
1) setting e.g: Comic Sans font for Labels, CheckBox
from awtcb.setFont(...)
You can get a list of fonts using Font.getFonts()
2) how can i change the background color or frame and
its componentsframe.setBackground(Color.red);
if there are codes for each color how should i find
which is for which one
3) In the code above i want to center i.e. bring all
the checkboxes or the entire checkboxgroup in the
center rather than in left What layout manager are you using
4) The button at the bottom sticks to the
frame......I want it to appear like a normal button

Similar Messages

  • There were pictures originally on my computer and were somehow take from my computer completely and moved to my iphone. On my iphone it doesn't let me delete those photos and i have no idea how to move them back to my computer. HELP? I need to keep them.

    There were pictures originally on my computer and were somehow take from my computer completely and moved to my iphone. On my iphone it doesn't let me delete those photos and i have no idea how to move them back to my computer. HELP? I need to keep them, they are valuable to me and were supposed to have been on my computer. I have no idea how to move them back since my computer barely lets me open my iphone and acknoledge those moved photos. Please help me!!

    Also in itunes on my computer i deselected the photos and their still on my phone.

  • Media encoder hates me...Anybody want to help? I need this file exported within 5 hours.

    So about a month ago I reinstalled media encoder because it decided that it doesn't want to work anymore and would simply give me an error telling me it couldn't open everytime I'd try to use it.
    Now I'm trying to export a premiere file and when I click start que it gives me a warning sign that says "Could not read from source, please check if it has been moved or deleted"
    The only time I moved a I was working with was moving the raw footage from my desktop to a folder on my desktop with the rest of the files I'm using in it.
    When I check the error log file everything appears to be correctly located, I also made sure that the temporary file it creates to export is where it says it is...so I don't know why it's giving me this message.
    I really don't know what to do, I"m about to just delete premiere and media encoder and reinstall both of them soon, in hopes that magically they will work...
    I'm using the mac version too if that makes a difference.

    "Could not read from source, please check if it has been moved or deleted"
    You admitted to having moved your files from the desktop to a folder on the desktop. That could well be your problem.
    You need to get PR to recognize the new location of your files. When you start your project, PR asks for the new location. You answer that question, the rest of your files will automatically be located. Then save your project, exit and restart PR. It should now automatically find all your files. If you have done this, is your problem solved? If not, answer the 16 questions Eddie pointed you to.

  • How do I restore photos from iPhone 5 to iPhoto. I erased all my events in iPhoto by mistake so need to sync them phone upstream to lions 10.7....not even apple support could help??

    How do I restore photos from iPhone 5 to iPhoto. I erased all my events in iPhoto by mistake so need to sync them phone upstream to lions 10.7....not even apple support could help?? I plug my phone into iPhoto and it sees the camera roll but none of my event so I can move them back into iPhoto

    Your photos are gone.  When you synch your phone with iPhoto, the actual picture file does not synch, rather is is a very small thumbnail file suitable for viewing on the phone, but of such small resolution that it's useless for anything other than viewing on the phone.  In any case, Apple makes no way for you to retrieve these thumbnail file.
    If you deleted photos from iPhoto, your only hope is if you have Time Machine or another backup that might have had those photos.  Are they perhaps still in the "Trash" within the iPhoto app?

  • Need help on how to use conference facility within adobe connect

    I need some help on how to use conference facility within adobe connect?

    I'd recommend you start here: Getting Started with Adobe Connect - Adobe Connect User Community

  • Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon ! please help

    Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon !  i never backed up on itunes ..please help

    No. The contacts are "owned" by the Exchange server.
    The Exchange server is owned by the company.
    Everything on the Exchange server is owned by the company.
    If you quit or were terminated, and your access to the system has been revoked, then there is nothing you and do at this point. Once you deleted the account from your phone, all of the associated data was deleted.
    NEVER store personal information on company systems.

  • I forget the answers for the secret questions,, i need to reset them,,any help please

    I forget the answers for the secret questions,, i need to reset them,,any help please

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (97479)

  • I'm trying to view my movies through itunes and apple TV but only a few appear in itunes when i add to library, they include .avi and mp4 files.  Whys have only a few copied and rest wont add to my library, can someone help? Do I need to convert them?

    I'm trying to view my movies through itunes and apple TV but only a few appear in itunes when i add to library, they include .avi and mp4 files.  Whys have only a few copied and rest wont add to my library, can someone help? Do I need to convert them?

    What are the file extensions of the movies that won't import to iTunes
    What video content works in iTunes
    What video content works with iTunes and mobile devices?
    iTunes:
    Video content purchased from the iTunes Store.
    QuickTime and MPEG-4 movie files that end in ".mov", ".m4v", or ".mp4" and are playable in QuickTime Player.
    Video podcasts.
    iTunes Digital Copies.
    iTunes Store Movie Rentals (Requires iTunes 9 or later).

  • So I forgot the answers to my security questions and in order to reset them I need to answer them? Help? I can't buy anything and I don't see the option to resend them...

    So I forgot the answers to my security questions and in order to reset them I need to answer them? Help? I can't buy anything and I don't see the option to resend them...

    The reset link will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account. If you aren't getting the link then that implies that you don't have one and you won't be able to add one until you can answer 2 of your questions - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been resetyou can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or, if it's available in your country, you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • Windows Server Guru needed! Apply within...

    April fools out of the way, now let's find an April genius!
    The name "April" is derived from the Latin verb "aperire", meaning "to open" in reference to being the season when trees & flowers start to "open".
    And I have to say, judging from the quality of contributions in recent months, I can't wait to OPEN and read this month's community gold!
    Things are hotting up in TechNet, and the Wiki has become a shining example of what the community has to offer.
    If you can find the time to enrich us with your latest revelations, or some fascinating facts, then not only will you build up a profile and name for yourself within the gaze of Microsoft's very own glitterati, but you will be adding pages to the most respected
    source for Microsoft knowledge base articles. This could not only boost your career, but would benefit generations to come!
    So don't be an April fool. Please realise the potential of this platform, realise where we are going, and join us in growing this community, learning more about you, and opening the minds of others!
    All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something
    you had to solve for your own day's work today.
    Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!
    This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!
    HOW TO WIN
    1) Please copy over your Microsoft technical solutions and revelations to
    TechNet Wiki.
    2) Add a link to it on
    THIS WIKI COMPETITION PAGE (so we know you've contributed)
    3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.
    If you win, we will sing your praises in blogs and forums, similar to the
    weekly contributor awards. Once "on our radar" and making your mark, you will probably be
    interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!
    Winning this award in your favoured technology will help us learn the active members in each community.
    Feel free to ask any questions below.
    More about TechNet Guru Awards
    Thanks in advance!
    Pete Laker
    #PEJL
    Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and only
    TechNet Wiki, for future generations to benefit from! You'll never get archived again!
    If you are a member of any user groups, please make sure you list them in the
    Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.

    We're up to 7 articles:
    Detailed Concepts: Lingering Objects
    in Active Directory and How To's? by Mahdi
    Tehrani
    Art Of Manipulation : Add custome attributes
    to Active Directory search function by Mahdi Tehrani
    Step by Step : Migrate
    local user profile to domain user profile with all settings by Mahdi Tehrani
    Active Directory Back to Basics : Password policies by Denis
    Cooper
    Active Directory Back to Basics : Sysvol by Denis
    Cooper
    Active Directory Back to Basics : The Schema by Denis
    Cooper
    Active Directory Back to Basics : FSMO Roles by Denis
    Cooper
    And 3 more days left!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Please help the elderly (me). I took pics on my iphone and need to get them up on craigslist and nothing is working. I admit to being technologically challenged.

    Please help the elderly (me). I took pics on my IPhone and need to get the pics up onto craigslist. Can someone please walk me through this process. I plugged my iphone into the usb port of my windows7 desktop computer and now I am lost!
    If you help, you can consider it your good deed of the day! Thanks

    Get this app & you can upload your pics directly, no need to import them to your computer:
    https://itunes.apple.com/us/app/craigslist./id438875956?mt=8

  • HELP! Lost all notes with first Sync and need to get them back

    I had some very important notes on my phone and I need to get them back. Here is some background info.
    I bought a new MacBook Pro a couple months ago. I previously have a Sony Vaio. Shortly after I upgraded from 3G to 3GS. Since I couldn't get my playlists from my old laptop to my new laptop, I synced my phone with my old laptop and not my new one for fear of losing everything.
    Today, I finally figured out to get my playlists on my MacBook and then I synced my iphone as usual and upgraded to 3.0.1. Of course, I also upgraded to iTunes 9 right beforehand and it had a couple new options for syncing notes and merging data. I have never synced notes before. Everything else seems fine on my phone except for this. I tried restoring to backup, however, I think that iTunes created a new backup on my Macbook since it was the first time I have synced my phone with it. I no longer have my old laptop. I did transfer all my old files to my mac.
    What can I do?! How can I get them back?!

    If you use the Time Machine on your computer then you can try to find an older copy of the places.sqlite file.
    *http://www.apple.com/support/timemachine/
    There are also JSON backups in the bookmarkbackups folder that you can use to restore bookmarks.
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    *http://kb.mozillazine.org/Lost_bookmarks
    *https://support.mozilla.org/kb/Lost+Bookmarks

  • I have more than one apple id and need to coordinate them

    I have more than one Apple ID and cant coordinate them over my devices

    That's correct. They cannot be merged nor terminated. You can stop using them. Note that anything you purchased (free or paid) is permanently connected with the Apple ID used to purchase those items. Only Apple has the ability to make those changes, so you would need to ask them for help.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • I have a profile that has 2 email accounts in it - I need to seperate them into two distinct profiles, how can I do this?

    I had a single laptop and several email accounts - a personal gmail account, a work gmail account (freelance writing) and a non-gmail account for my day-job.
    Until recently, my two gmail accounts were under a single profile and the job email in another.
    A month ago, I purchased a new computer so now I have a computer at home and at work and need to set up my emails at home.
    When taking a backup from thunderbird on my existing/old computer, it has it all saved as one profile - BUT I need to seperate them at home into seperate profiles.
    A friend suggested 1) putting it back as it is 2) then renaming the profile folder and 3) deleting the second account, 4) putting back the whole original backup folder so it creates a second profile and then 5) deleting the other email from this new profile, thus leaving two profiles.
    However, this sounded strange to me - possible, but strange - so I've elected to ask for help here before I try anything.
    Any advice in this regard is greatly appreciated.
    Cheers.

    Basically that's the way to go, with some modifications:
    Instead of<br>
    ''1) putting it back as it is 2) then renaming the profile folder''
    follow these instructions:<br>
    Create a new profile and copy the old one over it.
    http://kb.mozillazine.org/Moving_your_profile_folder_-_Thunderbird#Create_a_new_profile_and_copy_the_old_one_over_it
    The same goes for<br>
    ''4) putting back the whole original backup folder so it creates a second profile''
    Make sure to create backups of your profiles.
    http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Backing_Up_and_Restoring

  • External hard drives no longer working in Mavericks - HELP!  I need my data...

    Hello
    I recently upgraded to Mavericks (10.9.2) and this morning I was trying to find some files so connected my external hard drive (back-up 1).  Light went on...nobody home.  The drive didn't register as it had done last week.  In my hurried state I plugged in external hard drive 2 (back-up 2) and the same thing happened.
    Not phased by this I took my hard drives to work and tried them in my PC and also a friend's mac (not upgraded).
    Annoyingly I cannot access anything, in fact they don't even register existence even though they are whirring with the lights on.
    Please help! I need my data

    Hello AstroTravel,
    Thank you for the details of the issue you are experiencing with your external hard drive.  I found an article with steps you can take when an external device is not being recognized.
    I recommend following the steps in the section titled "Top troubleshooting tips" in the following article:
    USB and FireWire Quick Assist
    http://support.apple.com/kb/HT1151
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for