How to create Hyperlink column in a JTable

Can anyone help in creating a hyperlink column in a JTable.
Thanks in advance,
Sridhar.

If the parent is an Applet it is very simple .
catch the mouse click on columns and execute the following code
String url = getValueAt(i,j);
getAppletContext().showDocument(new
URL(url ), "_blank");
thatz all .
if ur program is an application use this getRuntime.exec() and use parameters to rundll32.exe url and iexplore.exe in Windows platform,
if u have still doubts plz get back to me
Renjith K.V

Similar Messages

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to create dynamics columns in oracle query1.

    hi,
    how to create dynamics columns in oracle query.its very urgent.
    regards
    prasad..

    Urgent is it?
    Why? Have you forgotten to do your coursework and you'll get thrown off your course if you don't hand it in today?
    What makes you believe that your request for help is more important than someone else who has requested help? It's very rude to assume you are more important than somebody else, and I'm sure they would like an answer to their issue as soon as they can get one too, but they've generally been polite and not demanded that it is urgent.
    Also, you assume that people giving answers are all sitting here just waiting to answer your question for you. That's not so. We're all volunteers with our own jobs to do. How dare you presume to demand our attention with urgency.
    If you want help and you want it answering quickly you simply just put your issue forward and provide as much valuable information as possible.
    Looking at your post you haven't told us what database version you are using, you haven't provided any create table DDL's and insert statements to populate that with sample data, and you haven't even shown us that you've had a go at doing something yourself.
    You will find if you post on here demanding your post is urgent then most people will just ignore it, some will tell you to get lost, and some will explain to you why you shouldn't post "urgent" requests. Occasionally you may find somebody who's got nothing better to do who will actually provide you with an answer, but you really are limiting your options by not asking properly.
    /rant
    As a basic example of dyanamic SQL:
    DECLARE
      cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
      cols DBMS_SQL.DESC_TAB;
      ncols PLS_INTEGER;
    BEGIN
      -- Parse the query.
      DBMS_SQL.PARSE(cur, 'SELECT hiredate, sal FROM emp', DBMS_SQL.NATIVE);
      -- Retrieve column information
      DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
      -- Display each of the column names
      FOR colind IN 1 .. ncols
      LOOP
        DBMS_OUTPUT.PUT_LINE (cols.col_name);
      END LOOP;
      DBMS_SQL.CLOSE_CURSOR (cur);
    END;
    /

  • How to create sub columns in interactive report

    can u tell me , how to create sub columns in
    interactive report. i really need it.i search lot but i dont get proper information.
    help plz...
    example : -
    |_____total_ persons _____|
    | persons | male | female |
    100 200 3000
    400 500 600

    i am nile.
    select id as id,
    male as male,
    female as female
    from persons.
    i want interactive report with main column total persons(static text) in that male , female.
    e.g.
    |___total persons_| - - - - -> main cloumn
    | male | female | - - - - -> sub columns
    100 200
    300 400
    Edited by: user9512075 on Aug 29, 2008 1:46 AM
    Edited by: user9512075 on Aug 29, 2008 1:47 AM
    Edited by: user9512075 on Aug 29, 2008 1:48 AM
    Edited by: user9512075 on Aug 29, 2008 1:49 AM

  • How to create two columns in a header?

    Can anyone tell me how to create two columns in a header please?
    Thanks!!

    Sandra,
    I'm suspicious about your motives.  It just doesn't seem logical to me to put so much content into a Header that two columns would be required.
    You might consider the alternate header-like approach; use a Text Box set to two-column format and Format > Advanced > Move Object to Section Master.
    Jerry

  • How to insert rows & columns into a jTable???

    helloo there...
    How to insert rows & columns into a jtable???
    your reply is greatly appreciated....
    -=samer=-

    Yes!thanks...
    But what i want is how to set the number of rows and the number of columns...and i don't know how to setColumns and rows....any idea?
    the user will input number of rows and columns in a jtextfield....
    Please rply...

  • How can I set column width in JTable?

    How can I set column width in JTable?

    Also, read the JTable API before posting questions. You will find a link to the Swing tutorial on "How to Use Tables", which contains an example of doing exactly this.

  • How to create hyperlink on column.

    Hi all,
    its very urgent.
    I have two pages first page like header level and secound page like lines level.
    in first page having requestid lov,find,create buttons and advance table region.
    secound page having only advance table region with add another button and save button.
    in first page, once click on the create button one requestid(header) is generated in header leval and at the same time that requestid move to secound page requestid column and user select the application name and responsibilityname and user click on the add another row button it ll add one more row with same requestid and here user again enter application name and resp name and click on the save button the data insert to two different tables.header information insert to one table and line information insert to another table.
    here my problem is in first page having requestid lov and find button. the user click on the find button all the requestids displayed in advance table region(this is only header information).once user select particular requestid and click on that requestid, it ll displays particular requestid line information to next page.
    how to create link on requestid column.
    how to achive this plz help me.
    Thanks

    Hi Mukesh,
    Thanks for replay.
    here my requirement is i have two pages in firstpage having requestid lov,go button and table region.
    once click on the GO button it ll display all the requestids(only header table information) these requestids are having hyperlink.
    one requestid(header) having multiful requestids(lines)
    once click on the particular requestid and go to next page here displays the line information.
    so i created one destinationURL, and in secound page CO process request i wrote below code.
    so plz check once.
    In CO:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String employeeNumber = pageContext.getParameter("requestID");
    System.out.println("this ia my link requestID:"+employeeNumber);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Serializable[] parameters = { employeeNumber };
    System.out.println("this is my link serizable requesid:"+ employeeNumber);
    am.invokeMethod("initDetails", parameters);
    in AM:
    public void initDetails(String employeeNumber)
    RequestAccessDetailsVOImpl vo1 = getRequestAccessDetailsVO1();
    System.out.println("my emp number AM:"+employeeNumber);
    vo1.setWhereClause("REQUEST_ID = :1");
    vo1.setWhereClauseParams(null); // Always reset
    vo1.setWhereClauseParam(0, employeeNumber);
    System.out.println("my emp number AM1:"+employeeNumber);
    vo1.executeQuery();
    once i click on the requestid(hyperlink) in home page that requestid move to secoundpageCO and AM also.
    plz check the output.this output generated OC4J server.
    this ia my link requestID:12590
    this is my link serizable requesid:12590
    my emp number AM:12590
    my emp number AM1:12590
    But did not displays the line information in secoundpage
    plz helpme.
    Thanks
    Edited by: its urgent on Mar 19, 2012 10:26 PM

  • How to create Hyperlink dynamically

    Hi All,
    In my application , iam using one table , one of the field in that table is input field,
    when i entered data in that field at runtime, automatically that field value should become hyperlink, to show another table.
    is it possible to do, if possible please help me in this how to create field dynamically.
    regards,
    sush

    Hi Sushma,
    What I get is that at runtime, you will fill the input field with some value & wish to have the field changed to a link.
    Adding to what Armin has said, keep the input field as it is. Add a new column in the table, create the TableCellEditor of type LinkToURL (if it is a URL value) or LinkToAction (if some value).
    For LinkToURL type, set the 'reference' property to the same context value attribute as the input field.
    For LinkToAction type, set the onAction event where you call the appropriate code.
    You can also set the 'text' property as Link or bind it to this context value attribute as well.
    Hope this works.
    Kind Regards,
    Nitin
    Edited by: Nitin Jain on Mar 25, 2009 9:14 AM

  • How to create hyperlinks in Acrobat 9 Pro?

    Hi everyone,
    Is there a way to create hyperlinks from within Acrobat 9 Pro? If so, can you let me know how? I am having a hard time finding out how to do so.
    Thank you in advance for your help:)
    Christine

    I did this from the advanced menu to make all hyperlinks work. All I got were boxes around my links that are not clikcable to the web page.
    Now I cannot undo this.

  • How to create a column where each subsequent entry is added to the former?

    How does one create a column, inside Numbers, where each subsequent cell is added, in value, to the preceding cell above it? For example, a column could be labeled "credit card subtotals for the month." In the first cell, one might insert a dollar value, eg., $24.00. The next credit card charge might be $100.00 and that would be added to the $24.00 to create a running subtotal.
    Thank you.

    Hi Jay,
    Both formulas are written as they would appear entered into C2.
    The 'special formula' is also written as it would appear in C2. Where I have used 'formula for C2' substitute your choice of the two formulas listed above the 'special formula' in my earlier post.
    If you choose to use the first version, the finished 'special formula' will look like this in C2:
    =IF(LEN(B2)>0,SUM(C1,B2),"")
    Jerry's remarks regarding using conditional formatting to suppress the display of zeroes is well taken, but in this case, will not work as there are no zero values to be hidden.
    In this case, either of the initial formulas will repeat the last 'running balance' in every cell from the last row containing an entry in column B to the bottom row of the table.
    The formula checks, by counting the number of characters displayed, whether an entry has been made in the column B cell on the same row as the formula (B2 in the example in this post. IF an entry has been made, the formula calculates the sum of that entry and the previous running balance. IF no entry has been made (ie. there are no chanracters displayed in B2, the calculation is skipped, and the empty string ( "" ) is placed in C2, giving the appearance of a blank cell.
    Example:  the formula in this post is used in column C. Column D uses the core of that formula (with the C1 reference replaced by D1) without the IF statement. Both formulas are filed down to the bottom cell in their columns. Note the difference in rows 7 and below:
    Regards,
    Barry

  • How to create New columns for the Internal Table Dynamically?

    HI Guys,
                          In my logic i have to create new columns depending on the logic which i am executing.
    My requirement is .I have to display o/p like this
    Material || Year || Period  ||  Mix ratio || Vendor ||Mix Ratio || Vendor || Mix Ratio Vendor || Mix ratio || Vendor || Mix ratio.............................from table's CKMLMV003 and CKMLMV001.Her i have to display the o/p in the above format and i have to display Vendor and Mix Ratio for 5 columns irrespective of data .If i have more than 5 columns for any record then i have to create a New columns dynamically for Vendor and Mix ratio.If anybody want my code i can Submit But plz tell with example how to do?
                    <b>The O/P must be finally shown in ALV Grid</b>
    Thanks,
    Gopi

    You must create the entire internal table dynamically, you can not add columns to a statically define internal table.  Here is an example of creating a dynamic internal table.
    Creation of internal table dynamically based on the Date Range entered
    Regards,
    Rich Heilman

  • How to create a column that automatically creates a serial number?

    How can I create a column that creates a serial number for each entry?

    you could do something like this:
    I assumed that the serial number only needs to be present if you have entered some information in the other columns of the corresponding row.
    A2=IF(COUNTA(2:2)>0, REPT("0", 6−LEN(ROW()−1))&ROW()−1, "")
    this is shorthand for... select cell A2, then type (or copy and paste from here) the formula:
    =IF(COUNTA(2:2)>0, REPT("0", 6−LEN(ROW()−1))&ROW()−1, "")
    To fill down:
    select cell A2, copy
    select column A by clicking the columne header (the "A" at the very top)
    unselect cell A1 by holding the command key while single clicking cell A1
    paste

  • How to create table columns dynamically ?

    Hi All,
    I am working on an SSRS report that will show sales in the past 5 years. If the user selected to view sales of past 3 years he will only see 3 columns. so How can I create table columns dynamically at run time and how can I make sure that their dimensions
    will adjust to fit the report page size.

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to create logical column...

    Hi experts,
    i am new in using obiee... i would like to ask how to create a logical column based on a select statement. i have a column report_date and the logical column will be a distinct year-month of that column.. please refer below..
    REPORT_DATE
    7/1/2006
    7/1/2006
    8/23/2007
    8/26/2007
    6/3/2008
    6/9/2008
    this is the format i want to have in my logical column..
    2006-7
    2007-8
    2008-6
    thanks in advance... :)

    hi,
    thank you for your reply, i just created a view just to have a column with the data that i want then used the column in the business layer.. :D

Maybe you are looking for

  • Synchronization of Asset master records and Equipment Number

    Dear friends, We are facing problem with the Equipment number that automatically gets generated during the Asset creation. We used Internal number range for Equipments which is similar to Asset numbers and whenever an Asset created automatically Equi

  • How to create an Infotype in OM

    Dear all, Can any one please let me know How to create an Infotype in OM. thanks abdul

  • Low memory startup disk

    Computer very slow or freezes when running 2 programs at the same time. popup: memory low on startup disk. what can i do????? please!!!!

  • Hyperion Planning : multiple hierarchies for a dimension ?

    Hi, Is it possible into planning 9.2 to manage multiple hierarchies for a dimension ? I didn't found that in the documentation but I had already listened that there is a workaround to do that. Regards

  • EHP4 for SAP ERP 6.0

    Hello, I am installing Enhancement Package 4 for SAP ERP 6.0 (Windows Server 2003 x64/Oracle) using EHPinstaller tool. SAP ERP 6.0 is an existing system. When I started the EHPi tool, I got to know that there are 8 stages in the installation roadmap.