JTable : How to display an icon near the column name ?

Hi all,
I'd like to display an icon near the column name of my JTable when an user click on the column; the icon specify the sorting applied to the data of JTable.
I know that i have to write a render, but how ?
Cheers.
Stefano

Hi all,
I found the solution at http://exampledepot.com/egs/javax.swing.table/IconHead.html
Cheers anyway.
Stefano

Similar Messages

  • How to Include Double Quotes in the Column Name

    Hi,
    I am using Dynamic Sql for creating the columns of a table. I am getting a situation where the user will give the double quotes for some column names. So,Can we add double quote to the column name.
    Thanks in advance.
    Regards,
    Alok Dubey

    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements008.htm
    However, neither quoted nor nonquoted identifiers can contain double quotation marks or the null character

  • How to bring status icons in the Adobe Form.

    Hi Experts,
    I am new to Adobe forms and I need to bring a icon indicating the satus ( For example green icon shoud be displayed if the values exceed our expection ) . Currently if I try to bring an icon in the form it is just displaying the text value corresponding to the icon even though the icon is of data type  ICONTEXT (For Example:Instead of displaying a icon in green it just displaying the corresponding text values like '@@4' ) . When we try to display the same icon in the table view it is displayed in a form of image.
    Kindly let me know how to bring status icon in the adobe forms.
    Thanks in Advance.
    Regards,
    Nandha

    Hi,
    The ADS will not understand this as an icon and create it on the PDF. If you want to insert an icon in the
    PDF you should insert it as an image in the Designer.
    Arun

  • How can i disable '+' icon in the toolbar

    Hi,
    I have one requirement i.e i want to disable '+' button[File-->New] in the toolbar.This button creates a record when i click on this.
    My block(Updatable block) should allows updations and insertions so i can't make insert_allowed and update_allowed property to "NO".I tried with
    APP_SPECIAL2.ENABLE('FILE.NEW',PROPERTY_OFF); but the + icon is still enabled when i write above code.
    How can i disable '+' icon in the toolbar
    Thanks in advance,

    This is eBusiness-related, maybe ask your question in the EBusiness-forum, maybe here OA Framework

  • How can I remove icons from the Finder sidebar?  Were transferred when I set up laptop from my desktop computer.  Tried dragging off but that didn't work.

    How can I remove icons from the Finder sidebar?  Transferred info from my Mac Pro desktop computer (using target mode) and there were folder icons on the Mac Pro Finder sidebar that are now on the MacBook Finder sidebar, even though these folders do not exist on the MacBook.  Tried to drag them off, which is the usual way to get rid of folders that the user adds to the sidebar (as opposed to those that can be added via the Customize Toolbar dropdown menu) but was unsuccessful.  I then unchecked all of the Customize Toolbar menu items and the folder icons still remained.  What else can I do?

    Did you hold the Command (Apple) key while dragging them off the sidebar? That usually makes them go *poof*.

  • How to get the Column names of output that is displaying in Sql Developer(Oracle 11g).

    Hi,
        I am using OCCI to interact with DB through code, which means I am writing a vc++ file to interact with Data Base and execute the Stored Procedure which I am calling from the C++ Code. And  also displaying the output of the Stored Procedures to the Front End. I am succeeded in this, but now I should be able to display  the Column names of the output to Front End. Can any one help me on this.
    Example:
    Sno  |   Sname
    ------- |-------------
    1          ABC
    2          DEF
    I am getting (1,ABC) and (2,DEF) as the output of the Stored Procedure but I need the Column names also to display. How to get them.
    Thanks in Advance..:)

    Look at Re: exporting csv via pl/sql - select statement?
    It has an example how to extract the column name from a cursor. You have to check, whether you can use DBMS_SQL.DESCRIBE_COLUMNS
    Your procedure might need another out parameter, that returns the column names , e.g. as comma separated list or as varray.

  • How to change the column names in display

    Hi,
    I want to change the columns names and give the display names as more User friendly..
    How should I acheive this in WebI reports.
    Regards,
    BOB

    Hi,
    the columns names are normal text fields. Just selecdt to edit your report , go to the editor panel and select the column header you want to modify. You can enter the text you want to display
    Regards,
    Stratos

  • How to display different icon, for different node of jtree

    Hi All,
    How to display different icon, for different node of jtree

    you haven't responded to my last post here: [http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676|http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676]

  • How to display data elements in the tempalte header

    Hello friends
    i've this date_from and date_to parameters which are date parameters that user enters..
    based on these date parameters I want to display them in the header as
    day of date_from(for example if the date_from is 13-nov-2010.then I should display 13)and for date_to it should dispaly as 15 if for example the user enters
    16-nov-2010.(date-1's day)
    so it should break down to
    date_from-13-nov-2010, 13
    date_to- 16-nov-2010, 15
    I want these two values to be displayed in the header of the template how to do this
    pls help
    also let me know how to display data elements in the template header
    Edited by: erp on Dec 22, 2010 12:44 AM

    Hi Ananth..Thanks for ur timely reply
    Can I use it with <? substring(':date_from',1,2)?>
    where date_from is an input parameter which user enters at the run time of the report.
    I've to capture the date entered by the user and print it in the header..
    Pls reply

  • How do I stop Launchpad renaming my App Icons with the wrong name

    How do I stop Launchpad renaming my App Icons with the wrong name (E.G. Evernote is now called Google Chrome). Also, how do I change the name back to what it is supposed to be. 
    Why do some of my app icons dissappear altogether? This feels very buggy to me.

    It sorted itself out. A glitch?

  • How to display link content on the the same sharepoint page on click event

    "How to display link content on the the same sharepoint page on click event"
    Detail:
    we are using a document library where all html files are stored/uploaded.  we would like to display/open the html file on the same sharepoint page where all the files are listed.
    Thanks.

    Use jQuery and set the target to self to the anchor tag
    Regards,
    Sairam Avacorp Technologies

  • Adobe Connect: how to display a picture in the WebCam pod when not sharing video

    Adobe Connect: how to display a picture in the WebCam pod when not sharing video

    The WebCam pod can pause a live video showing a static image. However, I believe that you are looking to use a Share pod, where you can upload a JPG or PNG image. Just place the share pod with the image where you would have the Camera pod.

  • How to add an icon in the title bar,next to the maximize and minimize icons

    I need to add an icon ( help icon; ?) in the JInternalFrame� title bar. Anyone could help me????
    Thanks

    have you get the answer ?? on how you add an icon to the title bar?? ...
    if you do please inform me..
    thanks

  • How can I change Icons on the Bookmarks Toolbar?

    How can I change Icons on the Bookmarks Toolbar?

    There are two extensions that help you apply your choice of an image for any Bookmark, not just the BTB icons. Choose one extension based upon the features it has, <br />
    https://addons.mozilla.org/en-US/firefox/addon/7849/ <br />
    https://addons.mozilla.org/en-US/firefox/addon/3176/

  • How can I delete icons from the desktop? every time I open a application (e.g. skype) the icon goes to the desktop

    how can I delete icons from the desktop? every time I open a application (e.g. skype) the icon goes to the desktop

    to remove the HD icon
    In Finder's Preferences pane, in the General tab, uncheck "Hard disks" under "Show these items on the Desktop" to clear away the icon.

Maybe you are looking for

  • Color management detective needed!

    I need help with some color management issues I'm having. I've noticed that RAW images imported into Aperture (both 1.0.1 and 1.1) look very different than those imported into PS2 via ACR. I've been told that this is simply a result of the different

  • Cannot Generate a PDF from Word 2007

    I have inherited a 100-page file in Word 2007, and have just encountered a problem when generating a PDF.  (BTW, I have Adobe Reader installed, and I have not yet receieved Acrobat for generating a PDF.)  To reduce file size and to send the file to o

  • Code mountain lion problem

    Hi, yesterday i did the request to have a copy of mountain lion becouse i just bought an Apple but i didn't recive the code yet. Is normal?

  • HDMI wont connect tv

    Hi i am having trouble with my pc i have an HP 2000 windows 8 laptop Running Windows 7 home premium and when i connect it to tv through HDMI it will not connect for some reason and i use it like that so i can watch netflix can someone help me figure

  • Max 10 photos to email?

    Does anyone know how to get around the 10 photos max when emailing in iPhoto 11? Also does anyone know how to eliminate the formatted themes with text boxes.?