Where  other JButtons  ,where the colour  and where JLabel in the applicat-

hi guys
when I runned this program in an application
only last Jbutton which is (9) appeared
only the standard colour has appeared for me
observe I used these objects
pane.setBackground(java.awt.Color.red);
setBackground(Color.white);}
and JLabel has not appeared in the application
I would be thankfull of anyone that help me
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import javax.swing.*;
public class Applet1 extends JApplet {
     public void init() {
          setBackground(Color.yellow);
          JLabel hellolabel=new JLabel("google");
          hellolabel.setToolTipText("is an engine search ");
          java.awt.Container contentPane=getContentPane();
          contentPane.setBackground(java.awt.Color.green);
          contentPane.add(hellolabel);
contentPane.add(new Label("Text string"));
          contentPane.add( hellolabel );
contentPane.add(new Label("\n"+"Text string "+"/t"));
contentPane.add(new Label("Text "+" /t "));
for(int i=0;i<10;i++){
JButton ok=new JButton( "" +i  );
Container pane=getContentPane();
pane.add(ok);
pane.setBackground(java.awt.Color.red);
setBackground(Color.white);}
               setVisible(true);}
          public static void main (String [] args){
               Applet1 van=new Applet1();
}}

Hi Scott,
Check the table TOBJ.
Happy coding...

Similar Messages

  • Ever since installing iCloud and Lion my computer is slow or freezes.  The color wheel comes on and My work stops.  I have only a small window of time where my computers will function normally during the day. I know many others that have the same problem.

    Ever since installing iCloud and Lion my computer is slow or freezes.  The color wheel comes on and My work stops.  I have only a small window of time where my computers will function normally during the day. I know many others that have the same problem. I'll get 20-30 minutes of work done and then a sync or something comes on, the color wheel of death shows up, and my productivity is shot.  I have to shut the computer down the hard way!  when it comes back up, it is still either frozen or slow.  I've checked in at the genius bar and all they say is that there have been some problems that Apple is trying to fix.  It effects Mail, Contacts, Safari, Calendar....yeah, pretty much everything.  My iPhone and iPad are not effected as much so I end up doing what I can with them.  I've seen the blogs out there and understand that many have the same problem.  I have been waiting to read about a fix but I have found nothing!  Any ideas?

    Not enough free space on the startup disk can slow the system down.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    For startup issues...  open System Preferences > Users & Groups - Login Items. Delete any apps listed there then restart your mac.
    And disable the Lion "resume" feature.
    Open System Preferences > General
    Deselect:   Restore windows when quitting and re-opening apps
    And Spotlight may be indexing... you can turn that off > Turning Off Spotlight | Mac Tricks And Tips

  • HT4946 I have had my iPhone for about a year, and I have a photo file from my old blackberry. When I go to back up my photos, it only backs up the camera roll. How do I back up the other album? The laptop where I had those photos broke, please can someone

    I have had my iPhone for about a year, and I have a photo file from my old blackberry. When I go to back up my photos, it only backs up the camera roll. How do I back up the other album? The laptop where I had those photos broke, please can someone help.

    You're going to have to email those photos to yourself.

  • TS3406 My phone doesn't make and receive calls. It doesn't have coverage where other iPhones with the same network do.

    My phone doesn't make and receive calls. It doesn't have coverage where other iPhones with the same network do. Please, let me know how way I sort this problem out?

    My wife is having the exact same issue after updating to the new iOS 8.1.1 and we've tried all the same steps even restoring the phone as a new phone. We've contacted our service provider and they've told us to go to apple to potentially "remove" her serial number from their servers to allow it to work properly on the service we have. We are desperate as purchasing a new phone right now is not an option and she desperately needs her phone for work and life.
    Iphone 5 8.1.1

  • I have cropped a clip and now want to take other clips from the remaining footage.  But the discarded footage which contains other desirable clips is not in Trash.  So, where did it go so I can access it?

    I have cropped a clip and now want to take other footage from the discarded remains of the clip.  But the discarded footage is not in my iMovie trash.  Where did it go?  And how do I rescue it so I can edit the other short clips from it that I need?

    I don't know how it did it (because I cannot duplicate the results) but one time the finder found a folder on my main hard drive called/Volumes Under that folder are folders called the names of previous external hard drives with numbers following them. /Volumes does not appear on my Mac hard drive. Obviously it is hidden somewhere. But it has content. Most of the time, the file names in that content don't show up in a search, but obviously I have found the content and deleted one huge folder of stuff it has saved. When I found the folder, I immediately opened it, where I found this stuff. But unfortunately when it opened in the search window I went directly to the "drive" folder and had no back arrow, so I couldn't get back to the search that found the content and the mystery /Volumes folder. The finder information window does show /Volumes directly off of the main drive (its not in any other folder). Anybody know where this stuff is hidden or how to get to it.

  • Writing in pages in Afrikaans. Spellcheck keep on correcting to dutch. Switched off spell check and checkeed keyaboard settings. Where do I get languages other than what Apple offer and where is the dictionary, Library, spelling files.

    Writing in pages in Afrikaans. Spellcheck keep on correcting to dutch. Switched off spell check and also looked in System preferences - keyboard. this stops the "Auto-correct" but does not help me with Afrikaans or other language spell check.  Where do I get languages other than what Apple offer and where is the dictionary, Library, spelling files.

    You are basically limited to what Apple deigns to offer.
    Try LibreOffice [free] which has a huge selection of languages.
    Peter

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is there any way to tell "Create MP3 Version" where to create the files other than in the same folder as the songs you want to create the mp3 versions of?

    I am trying to get MP3 versions of my non DRM protected songs onto a DVD so I can import them into my cars "Music Register".
    There is no easy way to do this that I can see in Itunes . I follow this process..
    Highlight the songs I want to copy in Itunes
    Select Create MP3 version from main menu
    Open up Finder Window showing the Itunes folder with the m4a and MP3 files newly created..
    Go Up a directory or 2 to get the Artist 'folder'
    copy that folder to my external drive
    Delete the MP3 songs from the Itunes folder (I dont want duplicates showing) obviously
    Delete the M4a songs from the external drive....
    I have about 5000 songs so doing this manually is clearly a complete pain.
    I dont think you can force it to create the mp3 files anywhere other than in the current folder in itunes unless someone tells me otherwise 
    More likely does anyone know of any other software to do this with less effort...
    I confess to not being an Itunes fan at all I admit but I like the Match functionality so I keep it otherwise I would cheerfully chuck it in the bin...
    Thanks in advance...

    It appears I have figured it out. You gotta go down to where it says Destination and tell Lightroom to Organize into One Folder.

  • Where can I download other language for N95? And h...

    Where can I download other language for N95? And how?
    Thanks

    You can't.
    Nokia care points can add languages for you.

  • Whenever i charge my laptop, the side where the charger is plugged in heats up a lot whereas the other wise of the laptop is definitely not at the same temperature?

    whenever i charge my laptop, the side where the charger is plugged in heats up a lot whereas the other wise of the laptop is definitely not at the same temperature? its as if it makes my laptop overheat but mostly from the left hand side

    TEMPS
    TEMPS
    HD: Macintosh HD, Untitled
    41°
    CPU
    72°
    Enclosure Base
    39°
    Enclosure Base 2
    39°
    Enclosure Base 3
    39°
    Enclosure Base 4
    38°
    Heatsink A
    65°
    Heatsink B
    55°
    FANS
    FANS
    Exhaust
    6196rpm
    these are the details it shows for my temperature- can you tell me what i can interpret from these figures?

  • Two PDF's - 1 created from Illustrator and the other Acrobat. Same colour is different in both. Why?

    Two PDF's - 1 created from Illustrator and the other Acrobat. Same colour is presented differently in both pdf documents. Why?

    Hi - sorry pressed send too quickly....
    I have two PDF documents that show a sample business card in PDF.
    One was apparently created through illustrator and is the focument for the printers ... it is this document that shows a completely different colour to the one that is in the other PDF that was apparently created in Acrobat. Though designers assure me that they are exactly the same patenone and that it's the software interpretting it.
    What i dont understand is why the colours would look different using the software from the same company....and why designers would put up with this as a basic layman it just looks plain wrong to me.

  • How to have an object in colour and the rest in black an white?

    Hi everyone,
    Could someone please explain how I can create an effect where one object in the scene is in colour and everything else is black and white? I'm trying to have a red hawaiin shirt stand out like this. I'm using FCP 5, not 6 so I don't have the Color app which I believe does this.
    Thanks in advance
    Simon

    While I'm sure color can do this. It's also pretty easy to do in FCP.
    1. Apply the "Color Corrector 3-Way" to the clip.
    2. With the "Color Cerrector" Tab in the effects window open, look at the bottom of the window and you'll see "Limit Effect" with an arrow on the left side of the window. Click the arrow and some options will appear.
    3. Click the eye dropper tool and select the color you want to keep.
    4. Tweak the selection by adjusting the color sat, and luma options. (There's no true science to this you just have to play with it until you get what you're looking for.) To help click on the "key" below the eyedropper to toggle different views to help you get your matte right.
    5. When you're happy with the matte. Drag the sturation slider all the way down. The color that you selected is now desaturated.
    6. Below the "key" is a "trapezoid" button. Click and it will invert your selection leaving your selected color nice and saturated and everything else B&W.
    James

  • When I open one particular folder to play the games in it the pointer turns into a pinwheel and I cant open the game or close the folder unless I shut down my computer.  Never happened before and does not happen with any other folder on the desktop.

    why does pointer become a pinwheel when I open one particular folder only and prevent me from opening the apps in it and then keep me from closing the folder unless I shut down the computer completely.  I can open all other folders on the desk top without a problem.  My game folder never gave me trouble before.

    Try this. Open one of your files. The window that contains your picture is named at the top. Command click on the name and you'll see the entire path starting with its name and then moving to the folder, the folder it is contained in, etc all the way to down to the hard drive volume name. This should tell you where to find the folder.

  • Hi, i am having an issue with a basic motion scroll effect.  I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me-, probably he didn't unde

    Hi, i am having an issue with a basic motion scroll effect.
    I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me…, probably he didn't understand what i wanted from him because english is not my native language, so a will try to be very, very clear about this one..
    please note, that i am new to muse, this is my first project ever.
    my idea is as following:
    when the customer comes to our companies site, he just sees our logo on a white Background. the logo consists of, say, four elements. when the customer scrolls down, the logo starts to disassamble: first the first part of the logo flies out the left side of the site, then the second part of the logo vanishes down, then the third part of the logo flies to the right, then the fourth part of the logo flies to the top and out of the customers view. given what i have seen, it is possible to do that….
    so…..
    now i have the four parts of my logo imported as png files into muse and assembled them in design view to build our companies logo. I select every one of the four parts and go into the scroll effects tab left beside the layers tab. first i enter the same values for every one of the four parts: initial motion: 0x and 0x again for the left and right motion; key position ( t-handle) : 0px; final motion: 0x and 0x again for the left and right value.
    now i hit "preview".: the logo is "pinned" at the correct position, i can scroll but the logo stays where it is. so far so good….
    now i select all the four elements again and go to the scroll effecs tab. at "final motion", i click the down arrows and enter 1x. I hit Preview…
    when i am scrolling down the WHOLE logo goes down…. so far so good.
    NOW i want the first part of the logo to go down, THEN the second part to go left, THEN the third part to go up, THEN the fourth part to go right.
    so i select ONLY the first part, go to the scroll motion tab, at "final motion" i click the left arrows, then i enter 1x.( the up-down value, i set to 0 again).. i hit Preview…
    the first part of the logo goes left as soon as i start scrolling, the other three parts still go down at the same time…
    NOW i want the second part of the logo to start moving, when the first part has left the scene, not at the same time as the first part.
    SO I SELECT THE SECOND PART AND DRAG ITS T-HANDLE (KEY POSITION) DOWN TO, LETS SAY, 200PX. SO IT STARTS MOVING ONLY AFTER THE CUSTOMER HAS REACHED THAT POINT, RIGHT?
    BUT WHEN I PREVIEW THAT ****, THE LOGO IS NOT TOGETHER ANYMORE, THE SECOND PART IS FLOATING ANYWHERE ELSE BUT WHERE IT SHOULD BE…..WTFF????
    short: when i move the t handle, the initial position of the object changes. thats what i said to the adobe employee, but he said, that thats the expected behavior….
    but if thats so, how can i have my four parts correctly together, so they form my logo, but with different t handles, so that they all start to move at different times??
    Pleeease help me, i am dying of frustration here…..:( that behavior cant be right, right?
    Thanks so much to everyone who actually reads this post and tries to help…….
    All the best,
    Niki Lapan

    Thank you so much for helping,
    But i really wonder how you did that. did you always switch between design view and preview view, then change the key position for 2px then switch back, to align the four letters? because i imagine that can get really frustrating, if you have a logo consisting of 58 parts instead of 4!:)
    Anyway thank you very much for your time and effort!!!!

  • Querying on a value and using that to pull other data in the same query

    I am having some issues pulling the correct data in a query. There is a table that houses application decision data that has a certain decision code in it, WA, for a particular population of applicants. These applicants also may have other records in the same table with different decision codes. Some applicants do NOT have WA as a decision code at all. What I need to do is pull anyone whose maximum sequence number in the table is associated with the WA decision code, then list all other decision codes that are also associated with the same applicant. These do not necessarily need pivoted, so long as I can pull all the records for a person whose highest sequence number is associated with WA and all of the other decision codes for that applicant for the same term code and application number also appear as rows in the output.
    I do not have the rights in Oracle to create tables, so please pardon if this code to make the table is incorrect or doesn't show up here as code. This is not the entire SARAPPD table framework, just the pertinent columns, along with some data to put in them.
    DROP TABLE SARAPPD;
    CREATE TABLE SARAPPD
    (PIDM              NUMBER(8),
    TERM_CODE_ENTRY   VARCHAR2(6 CHAR),
    APDC_CODE         VARCHAR2(2 CHAR),
    APPL_NO        NUMBER(2),
    SEQ_NO             NUMBER(2));
    INSERT INTO SARAPPD VALUES (12345,'201280','WA',1,4);
    INSERT INTO SARAPPD VALUES (12345,'201280','RE',1,3);
    INSERT INTO SARAPPD VALUES (12345,'201280','AC',1,2);
    INSERT INTO SARAPPD VALUES (23456,'201280','RE',1,2);
    INSERT INTO SARAPPD VALUES (23456,'201280','WA',1,3);
    INSERT INTO SARAPPD VALUES (23456,'201280','SC',1,1);
    INSERT INTO SARAPPD VALUES (34567,'201280','AC',1,1);
    INSERT INTO SARAPPD VALUES (45678,'201210','AC',2,1);
    INSERT INTO SARAPPD VALUES (45678,'201280','AC',1,2);
    INSERT INTO SARAPPD VALUES (45678,'201280','WA',1,3);
    INSERT INTO SARAPPD VALUES (56789,'201210','SC',1,2);
    INSERT INTO SARAPPD VALUES (56789,'201210','WA',1,3);
    COMMIT;I have attempted to get the data with a query similar to the following:
    WITH CURR_ADMIT AS
          SELECT   C.SEQ_NO "CURR_ADMIT_SEQ_NO",
                            C.PIDM "CURR_ADMIT_PIDM",
                            C.TERM_CODE_ENTRY "CURR_ADMIT_TERM",
                            C.APDC_CODE "CURR_ADMIT_APDC",
                            C.APPL_NO "CURR_ADMIT_APPNO"
                              FROM SARAPPD C
                              WHERE C.TERM_CODE_ENTRY IN ('201210','201280')
                              AND C.APDC_CODE='WA'
                             AND C.SEQ_NO=(select MAX(d.seq_no)
                                                   FROM   sarappd d
                                                   WHERE   d.pidm = C.pidm
                                                   AND d.term_code_entry = C._term_code_entry)
    select sarappd.pidm,
           sarappd.term_code_entry,
           sarappd.apdc_code,
           curr_admit.CURR_ADMIT_SEQ_NO,
           sarappd.appl_no,
           sarappd.seq_no
    from sarappd,curr_admit
    WHERE sarappd.pidm=curr_admit.PIDM
    and sarappd.term_code_entry=curr_admit.TERM_CODE_ENTRY
    AND sarappd.appl_no=curr_admit.APPL_NOIt pulls the people who have WA decision codes, but does not include any other records if there are other decision codes. I have gone into the user front end of the database and verified the information. What is in the output is correct, but it doesn't have other decision codes for that person for the same term and application number.
    Thanks in advance for any assistance that you might be able to provide. I am doing the best I can to describe what I need.
    Michelle Craig
    Data Coordinator
    Admissions Operations and Transfer Systems
    Kent State University

    Hi, Michelle,
    903509 wrote:
    I do not have the rights in Oracle to create tables, so please pardon if this code to make the table is incorrect or doesn't show up here as code. This is not the entire SARAPPD table framework, just the pertinent columns, along with some data to put in them. You really ought to get the necessary privileges, in a schema that doesn't have the power to do much harm, in a development database. If you're expected to develop code, you need to be able to fabricate test data.
    Until you get those privileges, you can post sample data in the form of a WITH clause, like this:
    WITH     sarappd    AS
         SELECT 12345 AS pidm, '201280' AS term_code_entry, 'WA' AS apdc_code , 1 AS appl_no, 4 AS seq_no     FROM dual UNION ALL
         SELECT 12345,           '201280',                    'RE',               1,             3                 FROM dual UNION ALL
         SELECT 12345,           '201280',                  'AC',            1,          2               FROM dual UNION ALL
    ... I have attempted to get the data with a query similar to the following:
    WITH CURR_ADMIT AS
          SELECT   C.SEQ_NO "CURR_ADMIT_SEQ_NO",
    C.PIDM "CURR_ADMIT_PIDM",
    C.TERM_CODE_ENTRY "CURR_ADMIT_TERM",
    C.APDC_CODE "CURR_ADMIT_APDC",
    C.APPL_NO "CURR_ADMIT_APPNO"
    FROM SARAPPD C
    WHERE C.TERM_CODE_ENTRY IN ('201210','201280')
    AND C.APDC_CODE='WA'
    AND C.SEQ_NO=(select MAX(d.seq_no)
    FROM   sarappd d
    WHERE   d.pidm = C.pidm
    AND d.term_code_entry = C._term_code_entry)
    Are you sure this is what you're actually running? There are errors. such as referencing a column called termcode_entry (starting with an underscore) at the end of the fragment above. Make sure what you post is accurate.
    Here's one way to do what you requested
    WITH     got_last_values  AS
         SELECT  sarappd.*     -- or list all the columns you want
         ,     FIRST_VALUE (seq_no)    OVER ( PARTITION BY  pidm
                                        ORDER BY      seq_no     DESC
                                  )           AS last_seq_no
         ,     FIRST_VALUE (apdc_code) OVER ( PARTITION BY  pidm
                                        ORDER BY      seq_no     DESC
                                  )           AS last_apdc_code
         FROM    sarappd
         WHERE     term_code_entry     IN ( '201210'
                           , '201280'
    SELECT     pidm
    ,     term_code_entry
    ,     apdc_code
    ,     last_seq_no
    ,     appl_no
    ,     seq_no
    FROM     got_last_values
    WHERE     last_apdc_code     = 'WA'
    ;Don't forget to post the results you want from the sample data given.
    This is the output I get from the sample data you posted:
    `     PIDM TERM_C AP LAST_SEQ_NO    APPL_NO     SEQ_NO
         23456 201280 WA           3          1          3
         23456 201280 RE           3          1          2
         23456 201280 SC           3          1          1
         45678 201280 WA           3          1          3
         45678 201280 AC           3          1          2
         45678 201210 AC           3          2          1
         56789 201210 WA           3          1          3
         56789 201210 SC           3          1          2I assume that the combination (pidm, seq_no) is unique.
    There's an analytic LAST_VALUE function as well as FIRST_VALUE. It's simpler (if less intuitive) to use FIRST_VALUE in this problem because of the default windowing in analytic functions that have an ORDER BY clause.

  • TS1398 Help! MacBook won't connect to the Internet on my network. Never had an issue on other networks, other devices work fine, i.e. iPhone/iPad. Says it's connected. Plugged in Ethernet and tried other browser. Called ISP and all good on their end. 

    Help! MacBook won't connect to the Internet on my network. Never had an issue on other networks, other devices work fine, i.e. iPhone/iPad. Says it's connected. Plugged in Ethernet and tried other browser. Called ISP and all good on their end. 

    You can't change it - just try aagain. 
    https://discussions.apple.com/index.jspa
    Where you find these options:
    Notebooks
    MacBook Pro
    MacBook Air
    iBook
    MacBook
    PowerBook

Maybe you are looking for

  • Problem with display of transport logs

    Hello,   The transport logs on one of our systems are not displayed from the SAP level. The logs are available in the trans directory with the logged information. Logs for other transport requests on the same day from the same user are displayed but

  • Can we have a search and find widget in Muse?

    Customers want the ability to search for content in our muse sites. This way we can also use Muse to built Portals, etc... So I believe this a widget we need!

  • How can I use my Iphone as wireless internet receiver for my MacBook Pro?

    Can anyone tell me how to use my Iphone 4 a wireless internet receiver for my macbook pro? Thanks & greeting from the Netherlands! Matthijs

  • HI GURUS REG CUSTOMER ACCOUNT GROUP

    hi, in cust account group 0001-sold to party, for Terms of Payment field , there r two different entries would be maintained in customer master . one in company code data and other is in sales area data billing pl tell me which is the entry where sys

  • Reconciliation Key in FICA

    Can anyone tell me if it is possible to reopen a closed reconciliation key that has NOT been transferred to the General Ledger?