Table kind of thingy...

I am creating a table/matrix looking thing with numerous rows and columns... I need a timeline along the top and each cell represents a hour. So if you picture what I am describing it looks something like a spreadsheet but with each cell as a solid color and NO text. I was first thinking of using a JSlider for my timeline (possibly removing the knob) and then putting a JPanel that I setup using GridLayout with JLabels or JButtons just with no text and whatever background color fits the scheme. Is that the way to go? The other option I thought I might look into would be to have a JTable and if possible set it non-editable and set background color of each cell and use the top field headers for my timeline (where I could put 10pm or whatever), any thoughts, ideas, and/or suggestions to aid in my decision? (or is there an object out there that already does something simliar?)

How do I get a background color of the cell in a table a differenct color? I see the JTable tutorial on the swing site shows one like that but I can't get my table to do it... (code snippet would be most helpful)

Similar Messages

  • Locked objects, Locked rows in a table, kind of locks

    Well, final question for the day.
    I created multiple session using sql plus, and in one session sql plus got lunch, it hour glasses and does nothing. I called up a DBA friend and he opined that it might be becasue one of my sessions has got a lock on a row in a table. I was also told that locks can be table level locks and row level locks.
    Please help me understand the below( I did try to read about locks, but atleast after first reading it is more confusing.. in order to update a row in a table why would oracle obtain a table level lock?)
    1. What are the different database objects which can get locked ?
    2. What are the different kinds of locks and what do they mean?
    3. When a row is locked by a session, can we identify that particular session and how ?
    4. What is the difference between pessimistic locking and optmistic locking ?
    5. Any scripts which I can use to get lock related info from database ?
    Gony

    1. What are the different database objects which can get locked ?There are locks which oracle acquire on any useful resource. We , as the users are most focussed on tables and their locks. But locks do happen in memory as well.
    2. What are the different kinds of locks and what do they mean?http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/dynviews_2.htm#REFRN30121
    3. When a row is locked by a session, can we identify that particular session and how ?Sure, there is a default script that comes up, utllockt.sql which can show you. Other than that, you can EM to do so as well. Read this,
    4. What is the difference between pessimistic locking and optmistic locking ?http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/instance_tune.htm#sthref748
    5. Any scripts which I can use to get lock related info from database ?See #4 above.
    HTH
    Aman....

  • Snapshot did not propagate changes to replicated table. kindly help

    Hi,
    Oracle 8.0.5 on windows server 2003.
    Objective:to replicate SALES table from Production DB to Backup DB.
    The steps I did are as follows:
    1. create db links to and from Prod and backup DB.
    2. create snapshot logs on SALES table on Prod DB
    3. create snapshot on SALES table on Backup DB with "select * from sales@PROD_DB
    But it seems the replication is not working or I missed doing something.
    I executed an update statement on the master site's table then on the replicated site I executed a manual refresh. But when I checked the replicated table, it was not updated.

    Can you please post the error that you are getting and also the statements that you used to create the mview and mview log?
    Regards

  • Errors while trying to create object Tables,kindly help.Anyone,please

    Oracle 10.2g
    This is what Iam trying to do
    Creating the School Type
    CREATE TYPE type_school AS OBJECT
    (      SCHOOL               VARCHAR2(30)
    ,      VA                    NUMBER(4)
    ,      ID                    NUMBER(4)
    ,      SN                    VARCHAR2(30)) ; /Creating the School Information Type
    CREATE TYPE type_schoolInfo As OBJECT
    (      SCHOOLID               REF type_school
    ,      SCHOOLNAME          VARCHAR2(50)
    ,      PHONELIST               VARCHAR2(50)
    ,      ADDRESS ROW     ( STREETNAME VARCHAR2(30),
                          POSTCODE VARCHAR2(30))
    ,      HEADTEACHERNAME     VARCHAR2(30)
    ,      LEAPASSWORD          VARCHAR2(30)) ;
    Warning: Type created with compilation errors.
    SQL> show errors type type_schoolInfo;
    Errors for TYPE TYPE_SCHOOLINFO:
    LINE/COL ERROR
    5/29     PLS-00103: Encountered the symbol "VARCHAR2" when expecting one
             of the following:
             . ( ) , * @ % & | = - + < / > at in is mod remainder not
             range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
             and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
             SUBMULTISET_
             The symbol "." was substituted for "VARCHAR2" to continue.
    6/16     PLS-00103: Encountered the symbol "VARCHAR2" when expecting one
             of the following:
             . ( ) , * @ % & | = - + < / > at in is mod remainder not
    LINE/COL ERROR
             range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
             and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
             SUBMULTISET_
             The symbol "." was substituted for "VARCHAR2" to continue.Thank you.
    Edited by: Trooper on Jan 13, 2009 5:59 PM

    The problem is here
    ADDRESS ROW     ( STREETNAME VARCHAR2(30),
                          POSTCODE VARCHAR2(30))Solution
    écrit file afiedt.buf
      1  CREATE TYPE address_objtyp AS OBJECT (
      2    streetname       VARCHAR2(30),
      3*   postcode         VARCHAR2(30));
    SQL> /
    Type créé.
    SQL> edit
    écrit file afiedt.buf
      1  CREATE TYPE type_schoolInfo As OBJECT
      2  (  SCHOOLID                        REF type_school
      3  ,  SCHOOLNAME              VARCHAR2(50)
      4  ,  PHONELIST                       VARCHAR2(50)
      5  ,  ADDRESS                address_objtyp
      6  ,  HEADTEACHERNAME VARCHAR2(30)
      7* ,  LEAPASSWORD             VARCHAR2(30)) ;
    SQL> /
    Type créé.[http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10799/adobjdes.htm]
    Edited by: Salim Chelabi on 2009-01-13 13:14

  • How do I create a grid/table in Fireworks CS4?

    I hope I'm not missing something obvious here. We're designed
    an application that involves a lot of data entry so in my
    prototypes I want to make an table or grid kind of thingy (think
    Excel) but can't find anything like that in the Common Library. Any
    suggestions?
    Thanks,
    Jim

    Try installing Aaron Beall's autoshape to draw grids:
    http://fireworks.abeall.com/extensions/autoshapes/
    This sounds like it does what you are looking for.
    Dave

  • Regarding creation of a standard table

    Hi,
    In my landscape, somebody deleted a standard table in one of my systems. when i am trying to access this table it is throwing an error message stating that table does not exist. check name.
    Now i want to know how to create this standard table and how to get the structure of that table.
    kindly help me regarding this issue.
    thanks & regards,
    eeswar

    Hi
    Well the solution you are thinking for this problem, doesn't seem to be a right way to me. Although recreation is no where possible for standard table, you can carry out transport.
    As the table is standdard one, and deleted you should rather think of restoring your backup. Because even if you transport it from one system to other, the data missing from your active server cannot be recovered and system can become inconsistent.
    So think about it once. Before applying transport.
    Regards
    Rahul

  • Cost of Goods Sold Table of CK13N

    Dear Experts,
    How to find Cost of Goods sold components of CK13N values with respective  cost element in Table
    kindly provide valuable suggestion
    With regards,
    Ganesh

    Ganesh,
    you will get the cost estimate results from KEKO and KEPH tables.
    In the standard cost scenario COGM and COGS values are same.
    when yo see the cost component view in the CK13N it will match with cost fields in the KEPH.
    pass the material and plant in KEKO table from there take cost estimate number, now pass this cost estimate number in KEPH table as per your cost components in each cost fields you will get the details.
    Please let me know if you need any further help.
    Regards,
    Ravi

  • PDF File from an internal table data

    I have an internal table ready for grid display of a report. But according to the new requirement, it shouldn't create a Spool request as it is affecting the performance of the system (because its a huge file with 3000+ pages).
    So, now we want to create a (non-editable) PDF File and store it in an application server.
    From the forum, i see that i have only one option, which is to Convert internal table data to OTF Format and then to PDF.
    Right now i am using  PRINT_TEXT to convert to OTF file and FM CONVERT_OTF for PDF file.
    The challenges i am facing right now is..
    1. After getting the OTF file from PRINT_TEXT, i couldn't get the correct PDF File. It shows random characters instead..
    2. My internal table has 103 columns. So how should i accommodate data from all these columns into a single row on a PDF?
    3. I couldn't create a table kind of view/display in PDF
    Please help/advice me on the above issue.
    Thanks,
    Sarada

    Hi,
    103 columns need to be seen in at least 7 pages or more. Cant display in just 1 page.
    I guess that better to create a smartforms and pass all the information from the table to the smartforms.
    There you can create multipages.
    Probably, that huge table need to separete it in 7 tables, so each page will get the information from one table...
    i will try to do sth like that.
    Regards
    Miguel

  • How to store internal table value in single variable

    hi gurus,
    i have 3 value in int table , so want to store the value of int table into single variable of type string.
    how it is possible

    hmmm, your requirement is kinda weird and you could have given us a bit more info, but well lets start.
    Why is your requirement weird?
    Well an internal table kinda is a variable itself, or rather a set of variables which together make up for a line type of your table.
    So you have a value you already have in a variable and now want to store it in anotherone? Seems weird.
    What type is your internal table?
    Do you have those three values in one record or in  three records which only hold one value each?
    Which of your values do you want to store in another variable?
    Anyway, make a F1 on the "READ TABLE" statement, this should definiteley help you.
    The "LOOP AT WHERE" statement could as well help if there should occur probrlem using READ TABLE.
    /edit DAMn i was posting this while you gave us more info.
    So still the question stays if you got your three values in one record or in three records.
    DATA: lv_variabl_containing_all      type char100.
    loop at itab into wa.
      concatenate lv_variabl_containing_all wa-value into lv_variabl_containing_all seperated by space.
    endloop.
    after the loop you now got all your values in lv_variabl_containing_all.
    That is for the case you got three records.
    other case would be
    Read table itab into wa index 1.
    concatenate wa-value1 wa-value2 wa-value3 into lv_variabl_containing_all.
    Edited by: Florian Kemmer on Apr 16, 2010 12:59 PM

  • Possible Sequential Read Access for a Sorted Table

    Hi All,
    I have the following warnings in Code inspector check.
    'Possible Sequential Read Access for a Sorted Table'
    Kindly provide me the solution to overcome this warning message.
    This is my code in BAdi : CRM_ORDER_FIELDCHECK , Method : FIELDCHECK
    I am getting the above warning at
      READ TABLE lt_status INTO ls_status WITH KEY status = 'E0001'
                                                   user_stat_proc = 'ZITRHDQT'
                                                   object_type = 'BUS2000114'.
    and at
        MODIFY ct_input_field_names FROM ls_input_field_names
                                    TRANSPORTING changeable
                                    WHERE fieldname NE lv_field.
    Please see the below code .
      DATA : lt_header_guid TYPE crmt_object_guid_tab,
             lt_item_guid TYPE crmt_object_guid_tab,
             lt_order_i     TYPE crmt_orderadm_i_wrkt,
             ls_order_i     LIKE LINE OF lt_order_i,
             lt_status      TYPE crmt_status_wrkt,
             ls_status      LIKE LINE OF lt_status,
             ls_input_field_names  TYPE crmt_input_field_names.
      DATA : lv_header_guid TYPE crmt_fieldcheck_com-guid,
             lv_chng_no   TYPE c VALUE 'A',
             lv_field(10)  TYPE c VALUE 'ACT_STATUS'.
      DATA: lv_status_completed     TYPE crmt_boolean.
    To Get GUID
      IF is_fieldcheck_com-guid IS NOT INITIAL.
        lv_header_guid = is_fieldcheck_com-guid.
      ELSE.
        lv_header_guid = is_fieldcheck_com-ref_guid.
      ENDIF.
      IF is_fieldcheck_com-ref_kind EQ 'A'.
        INSERT lv_header_guid INTO TABLE lt_header_guid.
        ELSE.
          SELECT SINGLE header FROM crmd_orderadm_i INTO lv_header_guid
                                WHERE guid = is_fieldcheck_com-ref_guid.
          INSERT lv_header_guid INTO TABLE lt_header_guid.
      ENDIF.
    *To Get the required details
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = lt_header_guid
        IMPORTING
          et_status            = lt_status
        EXCEPTIONS
          document_not_found   = 1
          error_occurred       = 2
          document_locked      = 3
          no_change_authority  = 4
          no_display_authority = 5
          no_change_allowed    = 6
          OTHERS               = 7.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE lt_status INTO ls_status WITH KEY status = 'E0001'
                                                   user_stat_proc = 'ZITRHDQT'
                                                   object_type = 'BUS2000114'.
      IF sy-subrc = 0.
        ls_input_field_names-changeable = lv_chng_no.
        MODIFY ct_input_field_names FROM ls_input_field_names
                                    TRANSPORTING changeable
                                    WHERE fieldname NE lv_field.
      ENDIF.
    ENDMETHOD.
    Regards
    Venkat

    Hello Blake,
    Try this:
    READ TABLE lt_action_fld WITH KEY STATUS = '0' BINARY SEARCH.
    wf_index = sy-tabix.
    loop at lt_action_fld from wf_index.
    if lt_action_fld-status ne '0'.
    exit.
    endif.
    delete lt_action_fld index wf_index.
    endloop.
    Let us know, if this helps.
    Rgds,
    Raghu.

  • F.47 Interest calculation on which table these values will be store

    Hi Team,
    I have query regarding Vendor arrear interest calculation after executing the f.47 it will save in sessions but before executing the session i want the print the form. For this purpose i want information after executing the f.47 these values are stoerd in which table kindly help me on this.
    Thanks and Regards,
    Nauma.

    Hi,
    For every tranasaction code there will be different tables related to that ,so the valuse will be stored in different tables.
    These are the tables releated to This tcode are
    t056,  t056d, t056u, kna1, knb1, bsid, bkpf, bseg, bsega, blntab, lfa1, lfb1, bsik,  tcurx, *bseg, *bkpf, itcpo, t033e, ikofi, t005, ttxd, b0sg, t056a, t056b, "T056K, t056p,  t056l, t056t, t047i,
    If you want in detail what are the field inserted in this table and check run this program RFKUZI00 and check here all the tables and fields
    regards,
    Santoshkumar

  • Populate the links from a list in a table format and navigate to the target when on clicked

    hi,
     i want to read a list and few columns and in that one column is a hyperlink column and i want to show as a grid-table- kind of format and when on clicked , i want to navigate to the target.
    whats the best approach for this.
    i know, i can create a   repeater/ gridview and on click of the row databound event in my visual web part i can navigate to the target.
    but, is this possible with the help of OOTB features of  SP 2013? as i dont want to create  a  VWP, and a feature and included in the wsp!
    help is appreciated!

    When you will create the site collection, you can programmatially do the followings:
    Create your custom view for your list (with only selected columns)
    Add a list view webpart in a page, and configure the list view webpart to point to the custom view you have created earlier.
    Also set the JSLink of the list view webpart.
    So whatever, you can do in SharePoint UI, can be done programmatically... And with a single JS file, in future you can change the list-view styles/logic just by JSLink file. Also with list view, you will get the default functionalities - like sorting, filtering
    etc., if you needed
    So if you would like to utilize SharePoint list view features with minor changes in styles/behaviour, list view approach will be better. But if you are looking for totally new looks and styles, then you better go for your own implementation. But from my
    experience, users will look for same behaviour as they see in SharePoint list/libraries.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Data Tables in C++

    I am facing a desperate situation where i need to keep data of all the records of a table. e.g ( select * from CUSTOMERS ) is there a Data Table kind of a structure either developed by a third party or a OCCI structure that you'll guys know of.
    this is kind of similar to DataTables in .Net or Java. i should be able to fill them and access the rows and the columns by indexes and column names

    Hello,
    IMHO, OCCI hasn't such a structure. With OCCI you must fetch all data as long as resultset->next() returns false. There is no function e.g. resultset->getcount().
    But consider, if you use select * from table_a the sequence of the rows is not determinated.
    E.g. your table has the columns A,B,C the result can be: ABC, ACB, BAC, BCA, CAB or CBA

  • Conversion error in table control

    Hi expert,
    Am using table control wizard to create table control in module pool proframming.
    as per my internal table there are 15 fields n am only using 10 fields in table control.
    is it mandatory  that i need to keep all the fields in order as am dispalying it in the table control.
    if yes then wat abt the remaining 5 fields. should keep these fields in the end of the internal table .
    kindly assist
    thx in advance.

    Hi...
    If you have only 10 fields to be needed in program then why do you have those extra fields in your internal table. Remove them if no longer needed.
    Else you can get them displayed and make those column inactive.
    Regards,
    Uma Dave

  • Flat file having multiple header lines , how to separate the same and pushit into my intrnal table

    Hi Guys,
                    I got an issue , My flat file having multiple header lines
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    some lines of data and again
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    in this case how could I separate the header lines from the flat file and update the details to my internal table.
    kindly help me on this issue.
    Thanks and regards,
    M.S.Amirtharajvijay.

    Hi Amirthraj,
    If the flat file is static (if the content within it is same for all) then use the offset concept. First get the contents of the flat file into an internal table and later find the field that has to be in final internal table within the line, calculate the offset for the line and get the value into an workarea. Finally modify/append the work area into an internal table. Also wait for other experts answers for any other hassle free way to achieve the requirement.
    With Regards,
    Giriesh M

Maybe you are looking for

  • Restricting polling in sender file adapter

    Hi friends, I have a requirement where I need to poll a file from an FTP server. But, if the file is being edited (some other application is writing to it) I need to avoid picking that file. Plz tell me how i can achieve this...waiting for ur replies

  • SQLDeveloper 1.5

    Mac OSX 10.4.11 G4 2GB RAM installed SQLDeveloper 1.5. There is no connections tab (and no Connections under the view menu) and anything database related does not work, e.g. setting SQL database parameters under Tools/Preferences/Database - nothing c

  • Group Spaces and Spaces

    Is there any difference in Group Space and Space? Most of the webcenter spaces tutorials show an option of creating a "Group Space", however when I login to WC Spaces as an admin I never see an option to "Create a Group Space" . All I see is "Create

  • 7941G Phone Screen Blank. Not able to Upgrade the Firmware

    Hi All I have Phone Cisco 7941G, iam try to upgrade i mess with that phone i believe, now screen is blank I have followed the below steps : 1: Disconnect the computer from your Network and Connected to Different Switch, where Phone and PC Only connec

  • When do we get our camera quality back ?

    Hi Do you know why I bought 2 Lumia 925 units ? It is because I saw the photo quality on my friends Lumia 920 ! Very sharp pictures with true colors - really incredibly good. My Lumia 925 units did however not offer the same quality. - My friends 920