How can i resize the table

hello every one,
i need your help
if i treid to resize the table columns but the columns width more than the page size the table automatically change the width to the frame size
how i display the columns even if its larger than the frame width?
im using this code
//set the column width
            TableModel tm=t.getModel();
            int col=tm.getColumnCount();
            TableColumnModel tcm=t.getColumnModel();
            for(int i=0;i<col;i++)
         tcm.getColumn(i).setPreferredWidth(150);
            tcm.getColumn(i).setMaxWidth(200);
            }

use JScrollPane or Use Horizontal Scroll bar

Similar Messages

  • How Can I obtain the tables of one schema and the record size???

    How Can I obtain the tables of one schema and the record size???
    Example:
    TableName Record Size
    Tabla1 12500
    Tabla2 7800
    Tabla3 2046

    This is not an OWB question, but you can obtain bda-type information on tables by using the system view dba_tables.
    Regards:
    Igor

  • We are upgrading from 8.3 to 9.2. How can i get the table(record) structure changes between these 2 version

    We are upgrading from 8.3 to 9.2. How can i get the table(record) structure changes between these 2 versions. I am not able to find it in Oracle support.

    My guess is you want to upgrade HR8.3 to 9.2 - and that is not one jump upgrade. You will need to go HRMS 83 to 90
    (PeopleSoft Enterprise HRMS 8.3x to 9.0 Upgrade (Doc ID 747333.1) and then 90 to 92 (PeopleSoft Human Capital Management 9.0 to 9.2 Upgrade Home Page (Doc ID 1536087.1)
    Each these MOS pages contains the Demo to Demo Compare Reports that show the data structures changes between the releases.
    Hope it helps.

  • How can i activate the table YGRBW_CS_UNITS

    hi frnds
    how can i activate the table YGRBW_CS_UNITS and its fields

    hi friend,
    if you mean the table structure
    SE11 type in YGRBW_CS_UNITS
    click activate
    hope this helps.

  • How can i extend the table control while transfering the data

    hi
    how can i extend the table control while transfering the data.

    Hi,
    For table control we have to handle the page down (P+, or what ever function codes are assigned to that activity) activity with our coding.
    Just check out this code:
    This is the bdc to update the XK01 transaction code (Vendor Creation).
    Here we will use table controls for bankings. Here Iam sending the coding and text files.
    Coding
    REPORT zprataptable2
    NO STANDARD PAGE HEADING LINE-SIZE 255.
    DATA : BEGIN OF itab OCCURS 0,
    i1 TYPE i,
    lifnr LIKE rf02k-lifnr,
    bukrs LIKE rf02k-bukrs,
    ekorg LIKE rf02k-ekorg,
    ktokk LIKE rf02k-ktokk,
    anred LIKE lfa1-anred,
    name1 LIKE lfa1-name1,
    sortl LIKE lfa1-sortl,
    land1 LIKE lfa1-land1,
    akont LIKE lfb1-akont,
    fdgrv LIKE lfb1-fdgrv,
    waers LIKE lfm1-waers,
    END OF itab.
    DATA : BEGIN OF jtab OCCURS 0,
    j1 TYPE i,
    banks LIKE lfbk-banks,
    bankl LIKE lfbk-bankl,
    bankn LIKE lfbk-bankn,
    END OF jtab.
    DATA : cnt(4) TYPE n.
    DATA : fdt(20) TYPE c.
    DATA : c TYPE i.
    INCLUDE bdcrecx1.
    START-OF-SELECTION.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = 'C:\first1.txt'
    filetype = 'DAT'
    TABLES
    data_tab = itab.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = 'C:\second.txt'
    filetype = 'DAT'
    TABLES
    data_tab = jtab.
    LOOP AT itab.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF02K-KTOKK'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'RF02K-LIFNR'
    itab-lifnr.
    PERFORM bdc_field USING 'RF02K-BUKRS'
    itab-bukrs.
    PERFORM bdc_field USING 'RF02K-EKORG'
    itab-ekorg.
    PERFORM bdc_field USING 'RF02K-KTOKK'
    itab-ktokk.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFA1-LAND1'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFA1-ANRED'
    itab-anred.
    PERFORM bdc_field USING 'LFA1-NAME1'
    itab-name1.
    PERFORM bdc_field USING 'LFA1-SORTL'
    itab-sortl.
    PERFORM bdc_field USING 'LFA1-LAND1'
    itab-land1.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFA1-KUNNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKN(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    cnt = 0.
    LOOP AT jtab WHERE j1 = itab-i1.
    cnt = cnt + 1.
    CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-banks.
    CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-bankl.
    CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-bankn.
    IF cnt = 5.
    cnt = 0.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKS(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=P+'.  " Page down activity
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKN(02)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    ENDIF.
    ENDLOOP.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKS(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB1-FDGRV'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFB1-AKONT'
    itab-akont.
    PERFORM bdc_field USING 'LFB1-FDGRV'
    itab-fdgrv.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB1-ZTERM'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB5-MAHNA'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFM1-WAERS'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFM1-WAERS'
    itab-waers.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF02K-LIFNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=YES'.
    PERFORM bdc_transaction USING 'XK01'.
    ENDLOOP.
    PERFORM close_group.
    **Flat files for the above code***
    Intial screen data file.
    1 63190 0001 0001 0001 mr bal188 b in 31000 a1 inr
    2 63191 0001 0001 0001 mr bal189 b in 31000 a1 inr
    Table control Data:
    1 in sb 11000
    1 in sb 12000
    1 in sb 13000
    1 in sb 14000
    1 in sb 15000
    1 in sb 16000
    1 in sb 17000
    1 in sb 18000
    1 in sb 19000
    1 in sb 20000
    1 in sb 21000
    1 in sb 22000
    2 in sb 21000
    2 in sb 22000
    Regards,
    Kumar.

  • How can i know the table fragments

    Hi
    How can i know the table is fragmented.
    Thank you

    If you're in 10g you could try use the Segment Advisor to identify various issues etc with your table. This will also provide recommendations on how to improve things.
    (below script shamelessly stolen from the brilliant Oracle Base website)
    -- segment_adv_table.sql
    -- Use Segment Advisor to analyse a table.
    -- Original Version
    -- http://www.oracle-base.com/articles/10g/SpaceObjectTransactionManagement10g.php
    -- owner is SCOTT
    -- table is EMP
    -- do a search/replace to change these 2 values and re-run it ;)
    DECLARE
    l_object_id NUMBER;
    BEGIN
    -- Create a segment advisor task for the SCOTT.EMP table.
    DBMS_ADVISOR.create_task (
    advisor_name => 'Segment Advisor',
    task_name => 'EMP_SEGMENT_ADVISOR',
    task_desc => 'Segment Advisor For EMP');
    DBMS_ADVISOR.create_object (
    task_name => 'EMP_SEGMENT_ADVISOR',
    object_type => 'TABLE',
    attr1 => 'SCOTT',
    attr2 => 'EMP',
    attr3 => NULL,
    attr4 => 'null',
    attr5 => NULL,
    object_id => l_object_id);
    DBMS_ADVISOR.set_task_parameter (
    task_name => 'EMP_SEGMENT_ADVISOR',
    parameter => 'RECOMMEND_ALL',
    value => 'TRUE');
    DBMS_ADVISOR.execute_task(task_name => 'EMP_SEGMENT_ADVISOR');
    END;
    -- Display the findings.
    SET LINESIZE 250
    COLUMN task_name FORMAT A20
    COLUMN object_type FORMAT A20
    COLUMN schema FORMAT A20
    COLUMN object_name FORMAT A30
    COLUMN object_name FORMAT A30
    COLUMN message FORMAT A40
    COLUMN more_info FORMAT A40
    SELECT f.task_name,
    f.impact,
    o.type AS object_type,
    o.attr1 AS schema,
    o.attr2 AS object_name,
    f.message,
    f.more_info
    FROM dba_advisor_findings f
    JOIN dba_advisor_objects o ON f.object_id = o.object_id AND f.task_name = o.task_name
    WHERE f.task_name IN ('EMP_SEGMENT_ADVISOR', 'USERS_SEGMENT_ADVISOR')
    ORDER BY f.task_name, f.impact DESC;

  • How can i access the table GL_CODE_COMBINATIONS  !!

    I'm sorry ~ My English is poor ~~ understand me ^^
    I execute procedure APPS.GL_TEST but error occured
    ORA-00904:"GL_TEST";invalid identifier.
    but it execute well at orange (program that like toad)
    May be i can't access GL_CODE_COMBINATIONS table ~~
    I have to execute APPS.GL_CODE_COMBINATIONS_PKG.INSERT_ROW(
    X_ROWID => X_ROWID,
    X_CODE_COMBINATION_ID => X_CCID,
    it have GL_CODE_COMBINATIONS table
    so have to make account ccid
    How can i access the table GL_CODE_COMBINATIONS !!
    Thank you ^^
    --CREATE OR REPLACE PROCEDURE APPS.GL_TEST(EFFBUF OUT VARCHAR2, RETCODE OUT NUMBER)
    IS
    V_VAL NUMBER;
    BEGIN
    UPDATE GL_CODE_COMBINATIONS
    SET SEGMENT7 = 'TEST'
    WHERE CODE_COMBINATION_ID = 1169;
    END GL_TEST;
    Message was edited by:
    jake

    ORA-00904:"GL_TEAT";invalid identifier.spelling mistake?
    Is user APPS owner of the table GL_CODE_COMBINATIONS?
    If not, you need to grant the necessary privilege directly and not through a role

  • How can I find the table of

    How can I find the table of the structure fields?
    A structures table?
    for example the table of sap standard structure diaprd or diadrp, I do not remember now?
    Thanks.

    The hard way....
    Go to SE11
    Enter the structure
    Position the cursor on the field
    Press Where-Used List
    Check all related table to see which one fulfill your needs
    Greetings,
    Blag.

  • Hi. How can I delete the table without deleting the content? My pages is 5.2.2.

    Hi. How can I delete the table without deleting the content? My pages version is 5.2.2. Thank you for your help.

    There is no convert Table to text capability in Pages v5.2.2, as there was in Pages ’09 v4.3.
    You can keep the table while making the table grid vanish, leaving the existing tabular text structure. Select the table, and under the Format panel > Table tab, the following settings will produce this output. If selected, you can refine its document placement in the Arrange tab.

  • How can we get the table name...

    Hi All,
    How can we get the actual table name for an argument if its datatype is %ROWTYPE.
    For Ex :
    function ACCOUNT_UPDATE (account_no number,
    person person%rowtype,
    amounts dbms_describe.number_table,
    trans_date date)
    return accounts.balance%type;
    In the above function 'ACCOUNT_UPDATE', for argument person the datatype is 'person%rowtype'.
    Is there any way to get the name from Data Dictionary tables.
    I tried using All_Arguments and DBMS_DESCRIBE, I can able to get all the individual fields of %ROWTYPE by I could not able to know the exact table name thru the DD.
    my requirement is dynamically I need to declare a variable for the argument datatype.
    Your help is highly appreciated.
    Thanks

    hi vinay,
    this is the easiest way to find the tablename of a particular field.
    t.code:XD01.
    enter.
    select the kunnr field.
    press F1.
    the top of the screen u will get 'Technical setting icon.
    select that one.then u will get tablename,fieldname,parameter id also.
    if helps give the rewards.
    regards,
    akash.k

  • How can I resize the PDF I created with a magazine template?

    Hello! I used a template that`s a different size than what I need. How can I resize (make it smaller) the PDF that I just created with this magazine template?

    So you picked a template in A4 format, and now you need letter. The printer can scale the PDF to 11" and it will get even narrower, leaving large margins. Does it have bleeds? That woudl be a disaster.
    Frankly, the best thing is to start over using the correct page size, but you can go to File > Document Setup... in ID and change the shape of the exisiting file. Expect to do a lot of work moving and resizing objects and refitting the type.

  • How can we now the tables for a transcation code

    dear experts
    in 4.6c we can fiend out the tables for trasaction code by using TC:SE49.
    in 4.7 and ECC6 how can we fiend out the tables,which are used for a transaction code?

    Hi,
    TO Find table used in  a particular Transaction.
    Goto Txn ST05
    1. Activate trace wih filter options
    2. Run the transaction for which u want to knw the tables in  a different session
    3. Click on every tab in that transaction.
    4. Again comeback to ST05
    5. deactive Trace.
    6. Display Trace
    Now you can the tables used in a particular transaction
    Thanks & REgards

  • How can I Update the table so that....

    I have a table XYZ with values like
    x y
    1 null
    1 null
    1 null
    1 null
    2 null
    2 null
    3 null
    4 null
    4 null
    4 null
    I want to update my table so that the values for column y appears the serial no for the given x. The output would be like
    x y
    1 1
    1 2
    1 3
    1 4
    2 1
    2 2
    3 3
    4 1
    4 2
    4 3
    How can I write the Update statement?

    SQL> CREATE TABLE t (x INTEGER, y INTEGER)
    Table created.
    SQL> INSERT INTO t
         VALUES (1, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (1, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (1, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (1, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (2, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (2, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (3, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (4, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (4, NULL)
    1 row created.
    SQL> INSERT INTO t
         VALUES (4, NULL)
    1 row created.
    SQL> UPDATE t t1
       SET y =
              (SELECT l
                 FROM (SELECT ROWID rid,
                              ROW_NUMBER () OVER (PARTITION BY x ORDER BY NULL) l
                         FROM t t2)
                WHERE t1.ROWID = rid)
    10 rows updated.
    SQL> SELECT *
      FROM t
             X          Y
             1          1
             1          2
             1          3
             1          4
             2          1
             2          2
             3          1
             4          1
             4          2
             4          3
    10 rows selected.

  • JPA - How can I use the table's default Date types? e.g. CURRENT_TIME

    Once again, can't find an answer anwhere.
    I would like to know if/how one can use the default date/time/datetime types as declared for the target table when attempting to persist an entity having these fields set as null.
    create table item
         item_id INTEGER NOT NULL PRIMARY KEY DEFAULT AUTOINCREMENT,
         date_created DATETIME NOT NULL DEFAULT NOW(*),
         date_updated DATETIME NOT NULL DEFAULT NOW(*),
    );Now how can I get the above table to work when attempting to em.persist(myItem) whereby dateCreated and dateUpdated are both null?

    I should also mention that TopLink has always supported the ability to retrieve the current time from the database for use in optimistic locking. The TimestampLockingPolicy offers the ability to configure the next value being retrieved from the database instead of using the local time from the JVM. Our extended optimistic locking configuration does not currently support setting this option but it could be done using a descriptor customizer which can be configured in your persistence unit properties.
    Using optimistic locking may be a good solution for the last modified date since it will also ensure that you do not corrupt the database if someone else has incremented this value since your last read.
    Doug

  • How can we lock the table?? how can we lock the record

    Hi
    how can we lock the complete table?? how can we lock the record ?/
    Thanks
    Rama

    Lock objects are used to lock the database table while making the modifications on the database table.
    you can create your own lock objects using SE11.
    if you create lock objects on any table system will create two function modules.
    1.ENQUEUE....
    2.DEQUEUE.....
    first one is used to lock the table
    second one used to removing lock on the table.
    lock Table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    Unlock Table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    check this link :
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    _SCOPE = 1: The lock is not sent to the update program. The lock is removed when the transaction is ended.
    _SCOPE = 2: The lock is sent to the update program. The update program is responsible for removing the lock. The dialog program which requested the lock no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.
    _SCOPE = 3: The lock
    Re: lock objects
    Reward if this helps.

Maybe you are looking for

  • Error while creating Db DataSource - Attempt to operate 'activate' on null

    Hi All, I am trying to create a new Datasource for Db Adapter in weblogic - SOA 11g, when i clicked on finish its getting created, but its not getting activated. Below is the error thrown. An error occurred during activation of changes, please see th

  • How do I copy captions with the photos into a photobook?

    How can I copy captions with the photos into a photobook.  The photos are in Adobe Elements 6.

  • Mask Live

    Hi, Does anyone knows how to do the following... LIVE... I want to send a video signal to FCP... a person speaking in front of a camera. Place a picture of somebody famous over the person's face, masking the mouth area... to parody an interview. Send

  • Issue using cross dissolve in my 'top row' edit

    Hi, in the opening of my video I have an opaque map with footage of a swimming pool behind. To create this, I have used the swimming pool footage on my bottom row of the timeline and the map (a still image) on the top row. I am trying to add a cross

  • Display extra values not displaying extra value

    Hi, I have a SQL query that returns a LOV. I have "Display Extra Values" set to Yes. However, I don't see my "extra value" in the Select List. ?? Yet, when I check the session state, the value in the session state is the extra value. So how come I do