How do i set a multiple colors for a panel

hi all,
how do i set a multiple colors for a panel .pl desperately need a solution.
regards
bhaskar

Iam contradicting self !
Hope this helps !
java.lang.Object
|
--java.awt.Component
has the paint method ! Take the Graphics Object and call Graphics.setColor( Color.red ) .. and u can draw regular shapes like fillRoundRect. blah blah.. u need t count on the pixels .. I guess..
An easier choice could be adding labels or panels with a layout of ur choice ..
venu

Similar Messages

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • How do you set the font color for a specific entire row inside a JTable?

    How do you set the font color for a specific entire row inside a JTable?
    I want to change the font color for only a couple of rows inside a JTable.
    I've seen some ways to possibly do this with an individual cell.
    Clarification on changing the font color in an individual cell would be helpful too if
    there is no easy way to do this for a row.

    hai,
    Try out with this piece of code.Create your table and assign the renderer to each column in the table.
    CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
    for(int i=0;i<your_JTable.getColumnCount();i++)
    your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
    class CellColorRenderer extends JLabel implements TableCellRenderer
    CellColorRenderer()     
    setOpaque(true);     
    setHorizontalAlignment(LEFT);
    setVerticalAlignment(CENTER);
    setBackground(Color.white);
    setForeground(Color.black);
    protected void setValue(Object value)
         setText((value == null) ? "" : value.toString());
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
         if(isSelected == true)
              setForeground(Color.red);
         else
              setForeground(Color.black);
         setValue(value);
         return this;
    regards,
    bala

  • How can i set the different colors for a different group ui elements

    Hi All,
                  I Created a View Container in that i crated 2 views. In first view i created a group and in second
    view also i created a group. I want to set The First view group header colour as Golden colour and for second view group heder colour as Green colour. Please any one help me on this.
    Thanks&Regards,
    Bhargava.

    Dear GLM,
                         i got that. while creating the theme, in Complex Elements select the group element and  set the primary group header colour to golden and secondary group Header colour to Green and in ur webdynpro application set the Group Design property as Primary Color for which group u want to set the Golden color and set the Group Design property as Secondary Color for which group u want to set the Green color.
    Thanks&Regards,
    Bhargava.

  • How do I set up multiple alerts for one event?

    So, I'm currently using MS Exchange to sync my google calendar with my iphone5, and almost everything's working pretty nicely, events would get pushed to my phone right away as I put it on my computer. But the thing is, my phone will only alert me for the earliest alert if I had multiple alerts set up for one event on google calendar. How can I fix it? Any advice would be appreciated!

    I have a similar issue with a slight twist.
    I have 'My Card' setup properly, however, I do have 5 email addresses that I use and these are listed on 'My Card'.  When I select the option to add an email alert on a calendar event, the app is picking up two addresses from the set of 5 and makes me pick one.
    I would like to select one of the other addresses to be the default for sending out the alerts.  Is there a way to do that.  If it is helpful, the app is picking up 2 of the 'Work' email addresses.  I don't know if the home vs work designation would make a difference.
    Note: I am looking for a solution to pick one a specific address from the contact card to send out the alert email.  I am NOT looking to have a discussion as to why I have 5 addresses.
    Thanks

  • How can i set the Header colors for a group ui element

    Hi All,
                  I Created a View Container in that i crated 2 views. In first view i created a group and in second
    view also i created a group. I want to set The First view group header colour as Golden colour and for second view group heder colour as Green colour. Please any one help me on this.
    Thanks&Regards,
    Bhargava.

    Dear Jean,
                     i creted the theam. in the Complex Element Group i changed the Primary group colour to Golden Colour and secondry group colour to Green Colour. but in my application for all group's header it iis taking the golden colour.
                             in my senario i have 2 views in view container. each view have the separate Group ui element. i wan to set golden colour for first view's group and Green colour for the Second View Group.
    how can i do that.
    Thanks&Regards,
    Bhargava.

  • How can i set up multiple user accounts for my new ipad mini?

    How can i set up multiple user accounts for my new ipad mini?

    The iPad mini is basically a one user device. There are no Accounts. You can set up restrictions so that only you can do certain things.

  • How do I set individual sound alerts for multiple email accounts?

    How do I set individual sound alerts for multiple email accounts?

    Here: http://www.guidingtech.com/15275/get-different-notifications-per-mail-account-io s-6/
    Long and short of it, the settings can be individually changed under Notifications. Select Mail and then the account you want to change the sound to.

  • How do you set up multiple accounts in itunes so phones don't automatically sync each others data ?

    How do you set up multiple itunes accounts to prevent multiple phones from sharing contact data?

    To add to Rod's answer, I have been blogging to explain more in detail the work flows for Question and Score slides, and some tweaking possibilities in these articles:
    http://lilybiri.posterous.com/question-question-slides-in-captivate
    http://lilybiri.posterous.com/question-question-slides-part-2
    Lilybiri

  • How do i set up multiple iCloud accounts on the same mac?

    how do i set up multiple iCloud accounts on the same mac?

    Interesting - I was sure I'd seen a note somewhere that it was only Mail, but this article:
    http://support.apple.com/kb/ts4020
    does say
    Your secondary iCloud accounts can be set up and viewed in Settings > Mail, Contacts, Calendars on your iOS device, or Apple () menu > System Preferences > Mail, Contacts, Calendars on OS X Lion. You may choose to do this if you have a second iCloud account and need to access its Mail, Contacts, or Calendar data. 
    Note: While you can configure multiple iCloud Mail accounts in iOS, Push mail will only work for the primary iCloud account in iOS. Secondary account(s) will check for mail based on the settings in Settings > Mail, Contacts, Calendars > Fetch New Data.
    It's not something I can test - I suppose the second account's data gets added to the lists in iCal and Address Book?

  • How do we set up multiple users?

    how do we set up multiple users?

    Create separate user accounts for each use. Use Accounts preferences or Users & Groups preferences depending on which version of OS X you are using.

  • How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5?  I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one.  Would appreciate help on this.  Cheers.

    How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5?  I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one.  Would appreciate help on this.  Cheers.

    It's not completely obvious. What you have to do in Spaces is to position your cursor to the upper right of the screen, after which faint + (plus) sign appears in that area. Click that, upon which another Desktop will appear.
    The + may be difficult or impossible to see with some desktop backgrounds (black, for instance):

  • Setting a default color for messages in Mail

    I figured out how to change the default font & font size in messages in the Mail application, and how to change the color in my signature, however I cannot figure out how to set the default color for new messages?

    Hi,
    Look at the Mail's preferences, under Composing. Select where you like to save notes and todos.

  • Hi Edge community,  How can I set a custom colors

    Hi Edge community,
    How can I set a custom colors & font size
    to the Adobe Edge Animate CC 2014
    work space (stage, time lone, tools, etc...)
    to get something close to this?
    http://www.vrmall.eu/vr/EDGE_WORKSPACE_BLACK_n_WHITE/EDGE_WORKSPACE_BLACK_n_WHITE_r.01.jpg
    Thanks a lot for Your time and help.

    Hi Robyn_cpl,
    thanks for the useful link - based on this I decided to
    purchase the PDF of Adobe Edge Animate: The Missing Manual
    by Chris Grover. Good book indeed, work space panels resizing
    and docking are covered, but there is nothing on colors&fonts...
    I've been searching  intro's, tut's, forums on Edge, but no hint
    on this... But I keep searching You Tube, Google, etc...
    I'm intended to submit the subject to Adobe Edge Support.
    Thanks again for Your attention

  • Can you set up multiple profiles for I pad

    Can you set up multiple profiles for I pad

    Not sure what you want to do.
    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

Maybe you are looking for

  • Icloud sent messages on device not saved in sent folder

    My icloud email is set up as an IMAP account on my Android phone and Windows computer (using EmClient).  Sent messages are not being saved to the sent folder.  I tried a message online in icloud and on my ipdad mini and there was no problem there wit

  • Cartridge problems HP Photosmart 7520 e-All-in-One Printer

    I have replaced all of my ink cartridges with genuine HP cartridges.  I keep getting an error message that says that one or more of my cartridges are either damaged or missing.  I also cleaned all of my printer heads.   Amy suggestions? 

  • Update Error Code: U44M1P208

    Hi. When starting upgrade of my Adobe Master Collection, CS5, an error occur, and downloading process and speed is extremely fast, even, none downloading are done. Within 20 sec, this near 1Gb size file for downloading are finish. Error message from

  • Satellite wont boot up

    When I go to turn on the laptop it goes rough the Toshiba start up, the Windows graphic shows then it holds for several minutes. Then if flashes some long message very fast (not enough time to read it). Then after it rolls back to the Toshiba boot up

  • Why does the 1d have less megapixels than 5d

    Can anyone tell my why Canon's flagship camera always has less megapixels than the next tier lower?  I.E - the current 1DX has 18.1 MPS, and the 5DIII has 22.3?