How to change the particular column background  color in jTable?

I am woking with a project, in which I am using a jTable. Then
How to change the particular column background color in jTable?

Use a custom Renderer. This is the JTable tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

Similar Messages

  • How to change a selected cell background color in JTable?

    Hi all,
    I am trying to change the background color of a selected cell by clicking on that particular cell. DefaultTableCellRenderer class provides setBackground(Color c) to change the background color of unselected cells. Is there a way to change a selected cell background color?
    Thank you,
    Arthur

    Write your own renderer (eg. extending DefaultTableRenderer) and put in getTableCellRendererComponent method something like this:
    if( isSelected && hasFocus )
        setBackground( Color.RED );
        setForeground( Color.GREEN );
    }

  • How to change the current item background color

    I m working in forms 6.0.
    I want to mak the background color of the current item (whatsoever the item name is ) as 'yellow'. How can i do that.How can i accoplish that? I've tried
    set_item_property(:system.cursor_item,background_color,'yellow');
    in Pre_text_item
    set_item_property(:system.cursor_item,background_color,'white');
    in post_item_item
    at block level
    But i failed to do that
    anyone to help me plz
    Riaz Shahid

    hi riaz,
    i think instead of pre-text-item put the code in when new item instance.or try creating a visual attribute with background color as yellow and attach that using set_item_property in when new item instance or check for help on DISPLAY_ITEM built in in forms help.I think one of these should definitely help u.
    bye
    Atul

  • How to change the font and background color in PowerShell

    From your error messages to your output parameters, changing the colors of different PowerShell variables and outcomes is a straightforward and useful way to customize your PowerShell console. You can quickly identify ouputs, error messages, parameters and more with simple color cues – and when you're dealing with a longer script, being able to quickly identify anything is a huge help.In aguide on how to configure and customize your color settingsin PowerShell, Petri walks through each and every step, and even donates some of itsown custom PowerShell color themes scripts. (It should be noted that this only works for PowerShell console and not PowerShell ISE.) You can access your color configuration by entering:Powershell$host.privatedataThis will pull up a list of all your colors as they are currently set.Image credit:Jeff HicksNow...
    This topic first appeared in the Spiceworks Community

    Use a custom Renderer. This is the JTable tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to change the page Header background colour in a Theme

    Hello,
    I want to know how to change the page header background colour. If you are in the Editor I don't find a property where to change it.
    If you are in the Theme Editor in the header bar I want to change stands <b>Theme Editor</b>. This (in my case blue colored bar) I want to change in another color.

    Hello Radhika,
    thanks for your answer. Where do I find the option for the pageheader in System Administration>Portal Display>Theme Editor ->IView Trays exactly?
    The pageheader is a picture, which must be uploaded for the web dynpro. Why should any webdynpro element in the ivew tray. There is no relationship between these two parts.
    I have not found any option to change the web dynpro pageheader. Could there any extra theme editor for webdynpro?
    Thanks.
    Olaf

  • How to change the button's clicked color

    Dear all,
    How to change the button's clicked color
    I want it to be white in color as my button's background color is white
    Thanks

    How to change the button's clicked colorvia the UIManager

  • How to change the default hint box color?

    How to change the default hint box color on the default Metal LookAF?
    I'm trying looking for something with javax.swing.UIManager, but i just find ways to translate the UI.
    Any idea?

    [UIManager Defaults|http://www.camick.com/java/blog.html?name=uimanager-defaults] shows all the properties of the UIManager.
    Although there is no "hint box" component, so I don't know if it will help.

  • How to change the selected tabPane title color in JTabbedPane

    how to change the selected tabPane title color(or set bold) in JTabbedPane.
    Any advice will be appreciate.

    Hi,
    try
    // Set text color for the selected tab
    tab.setForegroundAt(tab.getSelectedIndex(), Color.red);Hope that helps

  • How to change the endeca studio chart color . version is 3.1

    how to change the endeca studio chart color

    See Configuring the color palette for the chart display and Enabling color pinning for the chart dimension values .

  • How to change the login's background

    Hi all,
    I'm new with apex and i need to change the login's background, i want to place an image as the login's background.
    how do i do that?? where should i change it ??
    Regards
    Carlos

    Hello,
    Here you can see it in details:
    http://application-express-blog.e-dba.com/?p=1681
    http://www.grassroots-oracle.com/2011/07/modifying-your-apex-login-page.html
    Regards,
    Fateh

  • How to change the particular item size?

    Hello,
    I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file via SDK. Is it possible kindly advice me.
    Thanks for looking into this...

    That's a pretty general question. If its a path, the functionality you need is in the AIPath.h header; if its something else you need the correct suite to deal with it. I'd start by playing around with the SDK's examples -- they have something solid code that shows how you modify paths & other basic a Illustrator art types. If you run into trouble come back with a more specific question -- asking how you modify art in general is simply to broad a topic.

  • How to change the particular item size via script?

    Hello,
    I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file through script. Is it possible kindly advice me.
    Thanks for looking into this...

    I changed the widh and height of the selected items. While converting stroke weight of the selected item also changed. But i need to change the width and height of the selected items without any modification in the stroke weight(scale strokes and effects). Could you please advice me the possiblilities and solution via scripting.
    Thanks for looking into this..

  • Change a particular column font color

    i have a report . i need particular column values should be red.
    select empno, ename from emp;
    i need ename values to be appeared in red color.
    how this can be achieved?

    Hi,
    As it's just a report, you could adjust your SQL statement to something like:
    select empno,
    case when empno &lt; 1000 then '&lt;span style="color:red"&gt;' || ename || '&lt;/span&gt;' else ename end empname
    from emp
    Change the test empno &lt; 1000 to whatever test you require.
    Regards
    Andy

  • How to change the colour of background

    Hi,
    I'm quite new to Oracle Reports.
    Once I've created a report on a table by using the Wizard, where do I have to change the colour of the columns of the report? Or of the background as well?
    Thanks!

    Mark1970 wrote:
    Hi,
    I'm quite new to Oracle Reports.
    Once I've created a report on a table by using the Wizard, where do I have to change the colour of the columns of the report? Or of the background as well?
    Thanks!Welcome :)
    Check left side color plate at Layout Mode.. (left bottom)
    Hope this helps
    Edited by: HamidHelal on Apr 5, 2012 9:23 PM

  • How to change the colour of Background in TGA sequence with Alpha

    We are going to be loading an animated name key ,created in Motion, into our clarity system for live broadcast. To do so I need to export the animated name key as a TGA sequence. Unfortunately the background for the produced files are black and leave a dark halo when the alpha channel is applied. Is there a way to change the background colour of the produced TGA files to white?

    Use the rectangle shape tool. Draw a rectangle over the entire frame. In the shape tab, color it whatever you want. Export your TGA sequence.
    Andy
    PS: But if you place a colored bkg in your motion project that you will effectively have no alpha channel. Are they referencing the TGA's alpha?

Maybe you are looking for